Skip to content

Commit 4a8ff91

Browse files
committed
replaced msgfmt.py with latest version supporting Python 3
fixed setup scripts for Python 3
1 parent 1c9e6e3 commit 4a8ff91

File tree

3 files changed

+267
-218
lines changed

3 files changed

+267
-218
lines changed

roundup/cgi/TAL/talgettext.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@
6666

6767
NLSTR = '"\n"'
6868

69-
try:
70-
True
71-
except NameError:
72-
True=1
73-
False=0
74-
7569
def usage(code, msg=''):
7670
# Python 2.1 required
7771
print(__doc__, file=sys.stderr)

roundup/dist/command/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def build_message_files(command):
4949
_build_dst = os.path.join("build", _dst)
5050
command.mkpath(os.path.dirname(_build_dst))
5151
command.announce("Compiling %s -> %s" % (_src, _build_dst))
52-
msgfmt.make(_src, _build_dst)
52+
mo = msgfmt.Msgfmt(_src).get()
53+
open(_build_dst, 'wb').write(mo)
5354

5455

5556
class build(base):

0 commit comments

Comments
 (0)