Commits

Anonymous committed 39fadd2

better python3 support

Comments (0)

Files changed (2)

Binary file modified.

wafflelib/external_packages.py

         unpack_stamp.write('')
 
     def _get_cmd(cmd):
-        if isinstance(cmd, basestring):
+        if isinstance(cmd, str):
             cmd = shlex.split(cmd)
         return [Utils.subst_vars(c, self.env) for c in cmd]
     
         fout.write('++ cd %s\n' % cwd)
         fout.write('++ %s\n' % cmd)
         fout.flush()
-        if isinstance(cmd, basestring):
+        if isinstance(cmd, str):
             cmd = Utils.to_list(cmd)
             pass
         Utils.subprocess.check_call(