]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/compat.py
Avoid varying git archive content for ref; rework versioning
[bup.git] / lib / bup / compat.py
index 1ed2d0f70c9fc18f7afc2011a2e55381aa047ca4..39dd81063e25b84246129af00ca9165e0ed27c4f 100644 (file)
@@ -16,6 +16,7 @@ if py3:
     from os import environb as environ
     from os import fsdecode, fsencode
     from shlex import quote
+    ModuleNotFoundError = ModuleNotFoundError
     input = input
     range = range
     str_type = str
@@ -64,6 +65,8 @@ if py3:
 
 else:  # Python 2
 
+    ModuleNotFoundError = ImportError
+
     def fsdecode(x):
         return x