##// 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 import gettext, sys, os
9 import gettext, sys, os
10
10
11 # modelled after templater.templatepath:
11 # modelled after templater.templatepath:
12 if hasattr(sys, 'frozen'):
12 if getattr(sys, 'frozen', None) is not None:
13 module = sys.executable
13 module = sys.executable
14 else:
14 else:
15 module = __file__
15 module = __file__
@@ -61,4 +61,3 b' if _plain():'
61 _ = lambda message: message
61 _ = lambda message: message
62 else:
62 else:
63 _ = gettext
63 _ = gettext
64
General Comments 0
You need to be logged in to leave comments. Login now