Removed extra characters
this patch removes extra \, ().
This commit is contained in:
parent
44983793f5
commit
d4e9833279
@ -26,7 +26,7 @@ from . import default_conf
|
|||||||
random.seed()
|
random.seed()
|
||||||
|
|
||||||
|
|
||||||
class OLITestLib():
|
class OLITestLib:
|
||||||
cred_file = None
|
cred_file = None
|
||||||
testdir = None
|
testdir = None
|
||||||
"""Absolute path of the current temporary test directory"""
|
"""Absolute path of the current temporary test directory"""
|
||||||
@ -114,8 +114,8 @@ class OLITestLib():
|
|||||||
"-c%s" % os.path.join(cls.testdir, 'offlineimap.conf')],
|
"-c%s" % os.path.join(cls.testdir, 'offlineimap.conf')],
|
||||||
shell=False)
|
shell=False)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
return (e.returncode, e.output.decode('utf-8'))
|
return e.returncode, e.output.decode('utf-8')
|
||||||
return (0, output.decode('utf-8'))
|
return 0, output.decode('utf-8')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def delete_remote_testfolders(cls, reponame=None):
|
def delete_remote_testfolders(cls, reponame=None):
|
||||||
@ -126,7 +126,7 @@ class OLITestLib():
|
|||||||
if reponame:
|
if reponame:
|
||||||
sections = ['Repository {0}'.format(reponame)]
|
sections = ['Repository {0}'.format(reponame)]
|
||||||
else:
|
else:
|
||||||
sections = [r for r in config.sections() \
|
sections = [r for r in config.sections()
|
||||||
if r.startswith('Repository')]
|
if r.startswith('Repository')]
|
||||||
sections = [s for s in sections if config.get(s, 'Type').lower() == 'imap']
|
sections = [s for s in sections if config.get(s, 'Type').lower() == 'imap']
|
||||||
for sec in sections:
|
for sec in sections:
|
||||||
|
Loading…
Reference in New Issue
Block a user