diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-06 07:35:41 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-06 07:40:05 +0200 |
commit | ad36144c725016bb040359f17e00c048b4ed0188 (patch) | |
tree | 73d695b0cafdb836ab42dd71af816c38ec3c78c3 /bin | |
parent | ad2125ec7f00a94112b1b9c49bdda1d1237ce1b1 (diff) |
bin/contact-maintainers: don't redefine get_maintainers
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/contact-maintainers | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/contact-maintainers b/bin/contact-maintainers index 12d19d6dc1..516495c52d 100755 --- a/bin/contact-maintainers +++ b/bin/contact-maintainers @@ -19,17 +19,15 @@ def get_full_name(): return pwd.getpwuid(os.getuid()).pw_gecos.split(",")[0] -def get_maintainers(pkg): - return u"{}@packages.debian.org".format(pkg) - - try: import rdflib except ImportError: warnings.warn("python-rdflib not installed; will fall back to PTS email address") -else: def get_maintainers(pkg): + return u"{}@packages.debian.org".format(pkg) +else: + def get_maintainers(pkg): # RDF object and predicate references used on PTS project = rdflib.term.URIRef( @@ -74,7 +72,6 @@ else: return u", ".join(maint) - # Parse command line parser = argparse.ArgumentParser(description="Get in touch with package maintainers") parser.add_argument("--force", action="store_true", help="Ignore safety checks") |