]> arthur.barton.de Git - bup.git/blobdiff - t/root-status
get: adjust for python 3 and test there
[bup.git] / t / root-status
index 69fad4e37fa1943058a852f0bb06dcf78c19d03e..7127f8c1277172a81d358c2244286dea7c36ecd5 100755 (executable)
@@ -6,8 +6,7 @@ exec "$bup_python" "$0" ${1+"$@"}
 # end of bup preamble
 
 from __future__ import absolute_import, print_function
-from sys import stderr
-import sys
+import os, sys
 
 if sys.platform.startswith('cygwin'):
     groups = os.getgroups()
@@ -16,7 +15,6 @@ if sys.platform.startswith('cygwin'):
     else:
         print('none')
 else:
-    import os
     if os.environ.get('FAKEROOTKEY'):
         print('fake')
     else: