repository/Maildir.py changed not var in
This patch changes: if not var1 in var2 with if var1 not in var2
This commit is contained in:
parent
9779d5444a
commit
ccbe42fb64
@ -104,7 +104,7 @@ class MaildirRepository(BaseRepository):
|
|||||||
# sanity tests
|
# sanity tests
|
||||||
if self.getsep() == '/':
|
if self.getsep() == '/':
|
||||||
for component in foldername.split('/'):
|
for component in foldername.split('/'):
|
||||||
assert not component in ['new', 'cur', 'tmp'], \
|
assert component not in ['new', 'cur', 'tmp'], \
|
||||||
"When using nested folders (/ as a Maildir separator), " \
|
"When using nested folders (/ as a Maildir separator), " \
|
||||||
"folder names may not contain 'new', 'cur', 'tmp'."
|
"folder names may not contain 'new', 'cur', 'tmp'."
|
||||||
assert foldername.find('../') == -1, "Folder names may not contain ../"
|
assert foldername.find('../') == -1, "Folder names may not contain ../"
|
||||||
|
Loading…
Reference in New Issue
Block a user