aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-05-07 20:42:28 -0700
committerMark Sapiro <mark@msapiro.net>2008-05-07 20:42:28 -0700
commiteee0141340a74acc97fac4a4238f7305d1dee4b6 (patch)
treebe4f2118354b901ada22cb99b4e1e3a59b336981
parenta4cf495b4308f8c749a674d1a392ba96682d6bd9 (diff)
downloadmailman2-eee0141340a74acc97fac4a4238f7305d1dee4b6.tar.gz
mailman2-eee0141340a74acc97fac4a4238f7305d1dee4b6.tar.xz
mailman2-eee0141340a74acc97fac4a4238f7305d1dee4b6.zip
Changed formatting for standards compliance and readability.
-rw-r--r--Mailman/Queue/Runner.py4
-rwxr-xr-xbin/update5
2 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Queue/Runner.py b/Mailman/Queue/Runner.py
index 5902375b..3ab1bcf0 100644
--- a/Mailman/Queue/Runner.py
+++ b/Mailman/Queue/Runner.py
@@ -109,11 +109,11 @@ class Runner:
syslog('error',
'Skipping and preserving unparseable message: %s',
filebase)
- preserve=True
+ preserve = True
else:
syslog('error',
'Ignoring unparseable message: %s', filebase)
- preserve=False
+ preserve = False
self._switchboard.finish(filebase, preserve=preserve)
continue
try:
diff --git a/bin/update b/bin/update
index 9bd42698..ac83094a 100755
--- a/bin/update
+++ b/bin/update
@@ -346,8 +346,9 @@ script.
# to a language code. All the templates get moved from templates/xx
# to lists/xx. To avoid this, test the list name, and if it is 'en'
# or matches a name in the messages directory, just skip this step.
- if (mlist._internal_name <> 'en' and mlist._internal_name not in
- os.listdir(mm_cfg.MESSAGES_DIR)):
+ if (mlist._internal_name <> 'en' and
+ mlist._internal_name not in os.listdir(mm_cfg.MESSAGES_DIR)):
+ # It's okay to move the templates.
tmpl_dir = os.path.join(mm_cfg.PREFIX, "templates")
list_dir = mm_cfg.LIST_DATA_DIR
b4_tmpl_dir = os.path.join(tmpl_dir, mlist._internal_name)