##// END OF EJS Templates
hg: move unreachable code to where it could be reached
Jason R. Coombs -
r51427:057639af default
parent child Browse files
Show More
@@ -38,21 +38,21 b" if getattr(sys, 'frozen', None) == 'cons"
38 )
38 )
39 )
39 )
40
40
41 from hgdemandimport import tracing
41 try:
42 from hgdemandimport import tracing
43 except ImportError:
44 sys.stderr.write(
45 "abort: couldn't find mercurial libraries in [%s]\n"
46 % ' '.join(sys.path)
47 )
48 sys.stderr.write("(check your install and PYTHONPATH)\n")
49 sys.exit(-1)
42
50
43 with tracing.log('hg script'):
51 with tracing.log('hg script'):
44 # enable importing on demand to reduce startup time
52 # enable importing on demand to reduce startup time
45 try:
53 import hgdemandimport
46 import hgdemandimport
47
54
48 hgdemandimport.enable()
55 hgdemandimport.enable()
49 except ImportError:
50 sys.stderr.write(
51 "abort: couldn't find mercurial libraries in [%s]\n"
52 % ' '.join(sys.path)
53 )
54 sys.stderr.write("(check your install and PYTHONPATH)\n")
55 sys.exit(-1)
56
56
57 from mercurial import dispatch
57 from mercurial import dispatch
58
58
General Comments 0
You need to be logged in to leave comments. Login now