diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-31 12:12:02 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-31 12:12:02 +0100 |
commit | 527e535279dcceeb6ffcf091bc9e8fc23b46f287 (patch) | |
tree | 5a2c6bbeed90ee47e4a13dcfa854df6513a775f2 /whitelist.py | |
parent | cdd9f1d6a872fbc20e368fc23ddaf98eb1ef3741 (diff) | |
download | pygn-527e535279dcceeb6ffcf091bc9e8fc23b46f287.tar.gz |
Remove the spaghetti code from the main scripts.
Diffstat (limited to 'whitelist.py')
-rw-r--r-- | whitelist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/whitelist.py b/whitelist.py index 8d941b9..d76af85 100644 --- a/whitelist.py +++ b/whitelist.py @@ -112,16 +112,16 @@ class whitelist(object): self.logf.write('\tMessage-ID: ' + heads.get('Message-ID')) else: self.logf.write('\tMessage-Id: ' + heads.get('Message-Id', - 'NOT PRESENT\n')) + 'NOT PRESENT\n')) # X-Newsgroups: and To: are present if user is trusted, else # Newsgroup: exists since no changes on nntp headers are done. if 'X-Newsgroups' in heads: self.logf.write('\tTo: ' + heads.get('To', 'NOT PRESENT\n')) self.logf.write('\tX-Newsgroups: ' + heads.get('X-Newsgroups', - 'NOT PRESENT\n')) + 'NOT PRESENT\n')) else: self.logf.write('\tNewsgroups: ' + - heads.get('Newsgroups', 'NOT PRESENT\n')) + heads.get('Newsgroups', 'NOT PRESENT\n')) self.logf.write('\n') |