Skip to content

Commit 0b38251

Browse files
committed
tools/gitlog2changelog.py.in: trace absence of "unicode" type in some python bundles
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 535e0f6 commit 0b38251

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tools/gitlog2changelog.py.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@ import subprocess
1212

1313
# Python 3 compatibility hack
1414
try:
15+
try:
16+
import unicode
17+
except:
18+
# Maybe built-in?
19+
pass
1520
unicode('')
16-
except NameError:
21+
except NameError as ex:
22+
#DEBUG# sys.stderr.write("Using 'str' as 'unicode': %s\n" % str(ex))
23+
#DEBUG# sys.stderr.flush()
1724
unicode = str
1825

1926
try:

0 commit comments

Comments
 (0)