This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hfoffani
Recipients
Date 2001-03-19.10:41:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In Windows OS, an import tzparse fails. May be 
See below:

Python 2.1b1 (#11, Mar  2 2001, 11:23:29) [MSC 32 bit 
(Intel)] on win32
Type "copyright", "credits" or "license" for more 
information.
>>> import tzparse
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\python21\lib\tzparse.py", line 67, in ?
    tzset()
  File "c:\python21\lib\tzparse.py", line 50, in tzset
    tzstr = os.environ['TZ']
  File "C:\Python21\lib\os.py", line 371, in 
__getitem__
    return self.data[key.upper()]
KeyError: TZ
>>>

At line 67 there is a call to tzset() which fails if:
- TZ environment variable is not set
- TZ is set but with an unrecognized format

Commenting such line works for me. I don't need 
tzparse, just was get the docs thru pydoc the utility. 
But that's just me, I don't know about other guys.
(BTW, the module is said to be obsolote)

I don't know if this is really a bug... I read GvR 
that Ping is going to change pydoc from "import" 
to "parse source"...


History
Date User Action Args
2007-08-23 13:53:36adminlinkissue409683 messages
2007-08-23 13:53:36admincreate