hgdemandimport/__init__.py
changeset 32423 859496bb6db3
parent 32422 f37f9499fea8
child 33859 8fb5212652ec
--- a/hgdemandimport/__init__.py	Sun May 21 12:10:53 2017 -0700
+++ b/hgdemandimport/__init__.py	Sun May 21 12:23:04 2017 -0700
@@ -15,7 +15,10 @@
 
 import sys
 
-from . import demandimportpy2 as demandimport
+if sys.version_info[0] >= 3:
+    from . import demandimportpy3 as demandimport
+else:
+    from . import demandimportpy2 as demandimport
 
 # Extensions can add to this list if necessary.
 ignore = [