aboutsummaryrefslogtreecommitdiffstats
path: root/pygn2m
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2014-12-24 14:24:24 +0100
committerMatěj Cepl <mcepl@cepl.eu>2014-12-24 14:32:23 +0100
commit8af6ecfe31a7767f1d76f36581b01ddd26fb3220 (patch)
treea5cf60c5de6a34843fceb23895473cbb25c80fa2 /pygn2m
parent45552a9cb1ac5433fd2010d1736b41a3393b9b6b (diff)
downloadpyg-8af6ecfe31a7767f1d76f36581b01ddd26fb3220.tar.gz
Mighty cleanup
* Use more of the standard methods for OrderedDicts * remove pyginfo module (with SSOT being mail2news module) * remove TODO, INSTALL, and changelog.Debian * all FIXMEs and TODOs are filed as bugs in the issue tracker
Diffstat (limited to 'pygn2m')
-rwxr-xr-xpygn2m9
1 files changed, 3 insertions, 6 deletions
diff --git a/pygn2m b/pygn2m
index 14bb1e9..4acd2f2 100755
--- a/pygn2m
+++ b/pygn2m
@@ -20,9 +20,9 @@ import argparse
sys.path.append('/usr/lib/pyg')
-import pyginfo
import whitelist
import news2mail
+from mail2news import VERSION, DESC
def parse_cmdline():
@@ -30,10 +30,9 @@ def parse_cmdline():
set a dictionary with smtp new header in gw parameter (gw.smtpheads)
return (test,verbose) boolean tuple
"""
- i = pyginfo.pygsinfo()
parser = argparse.ArgumentParser(
- description='%s version %s - Copyright 2000 Cosimo Alfarano\n%s' %
- (i.PROGNAME, i.VERSION, i.__doc__))
+ description='pyg version %s - Copyright 2000 Cosimo Alfarano\n%s' %
+ (VERSION, DESC))
parser.add_argument('-H', '--smtpserver', default='')
parser.add_argument('-s', '--sender', required=True, default='')
@@ -42,8 +41,6 @@ def parse_cmdline():
parser.add_argument('-w', '--wlfile')
parser.add_argument('-l', '--logfile')
- # TODO eventually we should refactor these to be Boolean
- # and use store_true
parser.add_argument('-T', '--test',
help='test mode (not send article via SMTP)',
action='store_true')