##// END OF EJS Templates
i18n: use getattr instead of hasattr...
Augie Fackler -
r14975:b6453836 default
parent child Browse files
Show More
@@ -9,7 +9,7 b' import encoding'
9 9 import gettext, sys, os
10 10
11 11 # modelled after templater.templatepath:
12 if hasattr(sys, 'frozen'):
12 if getattr(sys, 'frozen', None) is not None:
13 13 module = sys.executable
14 14 else:
15 15 module = __file__
@@ -61,4 +61,3 b' if _plain():'
61 61 _ = lambda message: message
62 62 else:
63 63 _ = gettext
64
General Comments 0
You need to be logged in to leave comments. Login now