summaryrefslogtreecommitdiff
path: root/gbp/scripts/import_dscs.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/import_dscs.py')
-rw-r--r--gbp/scripts/import_dscs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/import_dscs.py b/gbp/scripts/import_dscs.py
index 5409ca11..c37cea80 100644
--- a/gbp/scripts/import_dscs.py
+++ b/gbp/scripts/import_dscs.py
@@ -79,13 +79,13 @@ def set_gbp_conf_files():
gbp.log.debug("Setting GBP_CONF_FILES to '%s'" % gbp_conf_files)
def print_help():
- print """Usage: gbp import-dscs [options] [gbp-import-dsc options] /path/to/dsc1 [/path/to/dsc2] ...
+ print("""Usage: gbp import-dscs [options] [gbp-import-dsc options] /path/to/dsc1 [/path/to/dsc2] ...
gbp import-dscs --debsnap [options] [gbp-import-dsc options] package
Options:
--ignore-repo-config: ignore gbp.conf in git repo
-"""
+""")
def main(argv):
@@ -159,7 +159,7 @@ def main(argv):
gbp.log.err(err)
ret = 1
finally:
- if dirs.has_key('tmp'):
+ if 'tmp' in dirs:
gbpc.RemoveTree(dirs['tmp'])()
os.chdir(dirs['top'])