changeset 14228:116de1da2154

rename util.main_is_frozen to mainfrozen
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 06 May 2011 15:10:29 +0200
parents 94985b5a8278
children 85fd8402cbc4
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Fri May 06 15:02:53 2011 +0200
+++ b/mercurial/util.py	Fri May 06 15:10:29 2011 +0200
@@ -297,7 +297,7 @@
 
 _hgexecutable = None
 
-def main_is_frozen():
+def mainfrozen():
     """return True if we are a frozen executable.
 
     The code supports py2exe (most common, Windows only) and tools/freeze
@@ -316,7 +316,7 @@
         hg = os.environ.get('HG')
         if hg:
             set_hgexecutable(hg)
-        elif main_is_frozen():
+        elif mainfrozen():
             set_hgexecutable(sys.executable)
         else:
             exe = find_exe('hg') or os.path.basename(sys.argv[0])
@@ -1199,7 +1199,7 @@
     to avoid things opening new shell windows like batch files, so we
     get either the python call or current executable.
     """
-    if main_is_frozen():
+    if mainfrozen():
         return [sys.executable]
     return gethgcmd()