mirror of
https://github.com/python/cpython
synced 2024-07-21 10:15:53 +00:00
- pygettext.py: Generate POT-Creation-Date header in ISO format.
This commit is contained in:
parent
a2542bee59
commit
2443d4ab5d
|
@ -81,6 +81,8 @@ Library
|
|||
Tools/Demos
|
||||
-----------
|
||||
|
||||
- pygettext.py: Generate POT-Creation-Date header in ISO format.
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
|
|
|
@ -445,7 +445,7 @@ def set_filename(self, filename):
|
|||
|
||||
def write(self, fp):
|
||||
options = self.__options
|
||||
timestamp = time.ctime(time.time())
|
||||
timestamp = time.strftime('%Y-%m-%d %H:%M+%Z')
|
||||
# The time stamp in the header doesn't have the same format as that
|
||||
# generated by xgettext...
|
||||
print >> fp, pot_header % {'time': timestamp, 'version': __version__}
|
||||
|
|
Loading…
Reference in a new issue