diff options
| author | bwarsaw | 2002-07-17 19:10:49 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-07-17 19:10:49 +0000 |
| commit | 1c80294e6f84cb174fb5d9f12fd32f871dea0b35 (patch) | |
| tree | a18a770c1e2d810e50fdffbf3b6299f11bca64fc | |
| parent | 5310ddc4e435699a39f9c9f1510cf7a2be391433 (diff) | |
| download | mailman-1c80294e6f84cb174fb5d9f12fd32f871dea0b35.tar.gz mailman-1c80294e6f84cb174fb5d9f12fd32f871dea0b35.tar.zst mailman-1c80294e6f84cb174fb5d9f12fd32f871dea0b35.zip | |
| -rw-r--r-- | Mailman/Utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index c7663c326..fedd1101a 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -23,7 +23,6 @@ the mailing lists, and whatever else doesn't belong elsewhere. """ -import sys import os import re import random @@ -286,6 +285,7 @@ for v in _vowels: for c in _consonants: _syllables.append(c+v) _syllables.append(v+c) +del c, v def MakeRandomPassword(length=6): syls = [] @@ -591,9 +591,8 @@ def reap(kids, func=None, once=0): def GetDirectories(path): - from os import listdir - from os.path import isdir, join - return [f for f in listdir(path) if isdir(join(path, f))] + return [f for f in os.listdir(path) + if os.path.isdir(os.path.join(path, f))] def GetLanguageDescr(lang): |
