From 64515786be5481ae5ee3d43d440133cbc96fdadd Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 25 Jul 2022 21:18:51 +0200 Subject: [PATCH] apparently lint likes long lines more than me --- python/src/deltachat/__init__.py | 5 +---- python/src/deltachat/account.py | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/python/src/deltachat/__init__.py b/python/src/deltachat/__init__.py index ee0efb927..45f1b8b2e 100644 --- a/python/src/deltachat/__init__.py +++ b/python/src/deltachat/__init__.py @@ -60,10 +60,7 @@ def run_cmdline(argv=None, account_plugins=None): ac = Account(args.db) - ac.run_account(addr=args.email, - password=args.password, - account_plugins=account_plugins, - show_ffi=args.show_ffi) + ac.run_account(addr=args.email, password=args.password, account_plugins=account_plugins, show_ffi=args.show_ffi) print("{}: waiting for message".format(ac.get_config("addr"))) diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 83912fea9..c5e14b5b6 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -616,9 +616,7 @@ class Account(object): self.add_account_plugin(plugin) if not self.is_configured(): - assert ( - addr and password - ), "you must specify email and password once to configure this database/account" + assert addr and password, "you must specify email and password once to configure this database/account" self.set_config("addr", addr) self.set_config("mail_pw", password) self.set_config("mvbox_move", "0")