mercurial/i18n.py
changeset 14975 b64538363dbe
parent 13849 9f97de157aad
child 21746 2d47d81c79fb
--- a/mercurial/i18n.py	Mon Jul 25 16:09:18 2011 -0500
+++ b/mercurial/i18n.py	Mon Jul 25 20:46:30 2011 -0500
@@ -9,7 +9,7 @@
 import gettext, sys, os
 
 # modelled after templater.templatepath:
-if hasattr(sys, 'frozen'):
+if getattr(sys, 'frozen', None) is not None:
     module = sys.executable
 else:
     module = __file__
@@ -61,4 +61,3 @@
     _ = lambda message: message
 else:
     _ = gettext
-