------------------------------------------------------------ revno: 6516 committer: Mark Sapiro <[EMAIL PROTECTED]> branch nick: 3.0 timestamp: Thu 2007-06-28 12:23:25 -0700 message: Cleaned up a couple of style issues. No actual code changes. modified: Mailman/bin/check_perms.py
=== modified file 'Mailman/bin/check_perms.py' --- a/Mailman/bin/check_perms.py 2007-06-28 17:23:27 +0000 +++ b/Mailman/bin/check_perms.py 2007-06-28 19:23:25 +0000 @@ -110,12 +110,13 @@ # 'group' permissions are checked here. Their 'other' permissions # aren't checked. private = config.PRIVATE_ARCHIVE_FILE_DIR - if path == private or \ - (os.path.commonprefix((path, private)) == private - and os.path.split(path)[1] == 'database'): + if path == private or ( + os.path.commonprefix((path, private)) == private + and os.path.split(path)[1] == 'database'): + # then... targetperms = PRIVATEPERMS - elif os.path.commonprefix((path, config.QUEUE_DIR)) \ - == config.QUEUE_DIR: + elif (os.path.commonprefix((path, config.QUEUE_DIR)) + == config.QUEUE_DIR): targetperms = QFILEPERMS else: targetperms = DIRPERMS @@ -402,7 +403,7 @@ else: print _('Problems found:'), STATE.ERRORS print _('Re-run as $MAILMAN_USER (or root) with -f flag to fix') - + if __name__ == '__main__': main() -- (no title) https://code.launchpad.net/~mailman-coders/mailman/3.0 You are receiving this branch notification because you are subscribed to it. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/3.0/+subscription/mailman-checkins. _______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org