Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pytz/files: pytz-2009j-zoneinfo.patch
Date: Sun, 21 Jun 2009 02:55:22
Message-Id: E1MIDDE-000235-DZ@stork.gentoo.org
1 arfrever 09/06/21 02:55:20
2
3 Added: pytz-2009j-zoneinfo.patch
4 Log:
5 Version bump.
6 (Portage version: 13659-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-python/pytz/files/pytz-2009j-zoneinfo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pytz/files/pytz-2009j-zoneinfo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pytz/files/pytz-2009j-zoneinfo.patch?rev=1.1&content-type=text/plain
13
14 Index: pytz-2009j-zoneinfo.patch
15 ===================================================================
16 Use the system zoneinfo from sys-libs/timezone-data.
17
18 --- pytz/__init__.py
19 +++ pytz/__init__.py
20 @@ -54,8 +54,7 @@
21 for part in name_parts:
22 if part == os.path.pardir or os.path.sep in part:
23 raise ValueError('Bad path segment: %r' % part)
24 - filename = os.path.join(os.path.dirname(__file__),
25 - 'zoneinfo', *name_parts)
26 + filename = os.path.join('/usr/share/zoneinfo', *name_parts)
27 if not os.path.exists(filename) and resource_stream is not None:
28 # http://bugs.launchpad.net/bugs/383171 - we avoid using this
29 # unless absolutely necessary to help when a broken version of