Explorar o código

Simplify expression

Raphael Michel %!s(int64=10) %!d(string=hai) anos
pai
achega
f56f35cc97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nsist/__init__.py

+ 1 - 1
nsist/__init__.py

@@ -282,7 +282,7 @@ if __name__ == '__main__':
                     shutil.rmtree(target_name)
                 elif os.path.exists(target_name):
                     os.unlink(target_name)
-                if self.exclude is not None and len(self.exclude) > 0:
+                if self.exclude:
                     shutil.copytree(file, target_name,
                                     ignore=self.copytree_ignore_callback)
                 else: