diff --git a/inbox/crispin.py b/inbox/crispin.py index 6f60ad21d..c4bdbbb74 100644 --- a/inbox/crispin.py +++ b/inbox/crispin.py @@ -620,14 +620,7 @@ def folder_prefix(self) -> str: # Unfortunately, some servers don't support the NAMESPACE command. # In this case, assume that there's no folder prefix. if self.conn.has_capability("NAMESPACE"): - ( - folder_prefix, - folder_separator, - ) = self.conn.namespace()[ # noqa: F841 - 0 - ][ - 0 - ] + folder_prefix, folder_namespace = self.conn.namespace()[0][0] # noqa F841 return folder_prefix else: return "" diff --git a/inbox/util/testutils.py b/inbox/util/testutils.py index 0fc313b82..b5190dbb6 100644 --- a/inbox/util/testutils.py +++ b/inbox/util/testutils.py @@ -49,7 +49,7 @@ def create_test_db() -> None: ) subprocess.check_call( - f"mysql -h {host} -u{user} -p{password} " f'-e "{cmd}"', shell=True + f'mysql -h {host} -u{user} -p{password} -e "{cmd}"', shell=True )