~ubuntu-branches/ubuntu/quantal/python-tz/quantal

« back to all changes in this revision

Viewing changes to pytz/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2010-01-06 15:17:35 UTC
  • mfrom: (1.1.16 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20100106151735-ncucmsnx9mklrt3k
Tags: 2009u-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
'''
10
10
 
11
11
# The Olson database is updated several times a year.
12
 
OLSON_VERSION = '2009p'
 
12
OLSON_VERSION = '2009u'
13
13
VERSION = OLSON_VERSION
14
14
# Version format for a patch release - only one so far.
15
15
#VERSION = OLSON_VERSION + '.2'
47
47
def open_resource(name):
48
48
    """Open a resource from the zoneinfo subdir for reading.
49
49
 
50
 
    Uses the pkg_resources module if available.
 
50
    Uses the pkg_resources module if available and no standard file
 
51
    found at the calculated location.
51
52
    """
52
53
    # Patched in Debian, use the system zoninfo from the tzdata package
53
54
    name_parts = name.lstrip('/').split('/')
716
717
 'Asia/Manila',
717
718
 'Asia/Muscat',
718
719
 'Asia/Nicosia',
 
720
 'Asia/Novokuznetsk',
719
721
 'Asia/Novosibirsk',
720
722
 'Asia/Omsk',
721
723
 'Asia/Oral',
1250
1252
 'Asia/Manila',
1251
1253
 'Asia/Muscat',
1252
1254
 'Asia/Nicosia',
 
1255
 'Asia/Novokuznetsk',
1253
1256
 'Asia/Novosibirsk',
1254
1257
 'Asia/Omsk',
1255
1258
 'Asia/Oral',