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 | f3fe23055acf835b22d10265813d28e0cafb8109 (patch) | |
tree | 42ccc2849b0f12a4d22a1df8195d9487252773fd /bin | |
parent | 841eed29f053643c3111f641ccd691b112c2bdd8 (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") |