mercurial/__init__.py
changeset 28430 17b85d739b62
parent 27225 30a20167ae29
child 28513 859af6e78368
--- a/mercurial/__init__.py	Wed Mar 09 08:08:27 2016 -0800
+++ b/mercurial/__init__.py	Wed Mar 09 15:47:01 2016 +0000
@@ -19,11 +19,14 @@
 #    c - require C extensions
 #    allow - allow pure Python implementation when C loading fails
 #    py - only load pure Python modules
-modulepolicy = '@MODULELOADPOLICY@'
-
+#
 # By default, require the C extensions for performance reasons.
-if modulepolicy == '@' 'MODULELOADPOLICY' '@':
-    modulepolicy = 'c'
+modulepolicy = 'c'
+try:
+    from . import __modulepolicy__
+    modulepolicy = __modulepolicy__.modulepolicy
+except ImportError:
+    pass
 
 # PyPy doesn't load C extensions.
 #