summaryrefslogtreecommitdiff
path: root/dev-python/pytz/files/2016.6.1-zoneinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytz/files/2016.6.1-zoneinfo.patch')
-rw-r--r--dev-python/pytz/files/2016.6.1-zoneinfo.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-python/pytz/files/2016.6.1-zoneinfo.patch b/dev-python/pytz/files/2016.6.1-zoneinfo.patch
new file mode 100644
index 000000000000..d8223da436cf
--- /dev/null
+++ b/dev-python/pytz/files/2016.6.1-zoneinfo.patch
@@ -0,0 +1,12 @@
+--- a/pytz/__init__.py
++++ b/pytz/__init__.py
+@@ -81,8 +81,7 @@
+ for part in name_parts:
+ if part == os.path.pardir or os.path.sep in part:
+ raise ValueError('Bad path segment: %r' % part)
+- filename = os.path.join(os.path.dirname(__file__),
+- 'zoneinfo', *name_parts)
++ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
+ if not os.path.exists(filename):
+ # http://bugs.launchpad.net/bugs/383171 - we avoid using this
+ # unless absolutely necessary to help when a broken version of