Changeset 5706
- Timestamp:
- 11/17/08 18:21:03 (2 months ago)
- Files:
-
- branches/1.1/turbogears/toolbox/admi18n/__init__.py (modified) (1 diff)
- branches/1.1/turbogears/toolbox/admi18n/pygettext.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/turbogears/toolbox/admi18n/__init__.py
r5704 r5706 288 288 filename = os.path.join(locales, 'messages.pot') 289 289 try: 290 os.rename(pot, filename)291 except OSError, e:290 shutil.copyfile(pot, filename) 291 except IOError, e: 292 292 print e 293 293 branches/1.1/turbogears/toolbox/admi18n/pygettext.py
r5704 r5706 779 779 if options.outpath: 780 780 options.outfile = os.path.join(options.outpath, options.outfile) 781 fp = open(options.outfile, 'wt') 781 # we want to truncate any existing file so w+ is the best flag mix 782 fp = open(options.outfile, 'w+') 782 783 closep = 1 783 784