Skip to content

Commit 249db28

Browse files
committed
Revert unrelated changes
1 parent 6e0cd50 commit 249db28

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Tools/i18n/pygettext.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#! /usr/bin/env python3
2+
# -*- coding: iso-8859-1 -*-
23
# Originally written by Barry Warsaw <[email protected]>
34
#
45
# Minimally patched to make it even more xgettext compatible
56
# by Peter Funk <[email protected]>
67
#
7-
# 2002-11-22 Jürgen Hermann <[email protected]>
8+
# 2002-11-22 J�rgen Hermann <[email protected]>
89
# Added checks that _() only contains string literals, and
910
# command line args are resolved to module lists, i.e. you
1011
# can now pass a filename, a module or package name, or a
@@ -206,7 +207,7 @@ def make_escapes(pass_nonascii):
206207
global escapes, escape
207208
if pass_nonascii:
208209
# Allow non-ascii characters to pass through so that e.g. 'msgid
209-
# "Höhe"' would result not result in 'msgid "H\366he"'. Otherwise we
210+
# "H�he"' would result not result in 'msgid "H\366he"'. Otherwise we
210211
# escape any character outside the 32..126 range.
211212
mod = 128
212213
escape = escape_ascii
@@ -323,6 +324,10 @@ def __init__(self, options):
323324
self.__prev_token = None
324325

325326
def __call__(self, ttype, tstring, stup, etup, line):
327+
# dispatch
328+
## import token
329+
## print('ttype:', token.tok_name[ttype], 'tstring:', tstring,
330+
## file=sys.stderr)
326331
self.__state(ttype, tstring, stup[0])
327332
self.__prev_token = (ttype, tstring, stup, etup, line)
328333

0 commit comments

Comments
 (0)