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:
Rodolfo García Peñas (kix) 2020-08-30 14:25:55 +02:00
parent 9779d5444a
commit ccbe42fb64

View File

@ -104,7 +104,7 @@ class MaildirRepository(BaseRepository):
# sanity tests
if self.getsep() == '/':
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), " \
"folder names may not contain 'new', 'cur', 'tmp'."
assert foldername.find('../') == -1, "Folder names may not contain ../"