mirror of https://github.com/zulip/zulip.git
python: Remove extra pass statements with autoflake.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
8bcdf4ca97
commit
cf923b49d3
|
@ -225,7 +225,6 @@ class FakeMessage:
|
|||
We just need a stub object for do_render_markdown
|
||||
to write stuff to.
|
||||
'''
|
||||
pass
|
||||
|
||||
def fix_message_rendered_content(realm: Realm,
|
||||
sender_map: Dict[int, Record],
|
||||
|
@ -416,7 +415,6 @@ def re_map_foreign_keys_internal(data_table: List[Record],
|
|||
# subscription object
|
||||
# check function 'get_huddles_from_subscription'
|
||||
ID_MAP['recipient_to_huddle_map'][item['id']] = lookup_table[old_id]
|
||||
pass
|
||||
else:
|
||||
continue
|
||||
old_id = item[field_name]
|
||||
|
|
|
@ -153,7 +153,6 @@ class RateLimiterBackend(ABC):
|
|||
@abstractmethod
|
||||
def block_access(cls, entity_key: str, seconds: int) -> None:
|
||||
"Manually blocks an entity for the desired number of seconds"
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
|
|
|
@ -477,7 +477,6 @@ class Runner(DiscoverRunner):
|
|||
shutil.rmtree(TEST_RUN_DIR)
|
||||
except OSError:
|
||||
print("Unable to clean up the test run's directory.")
|
||||
pass
|
||||
return super().teardown_test_environment(*args, **kwargs)
|
||||
|
||||
def test_imports(self, test_labels: List[str], suite: Union[TestSuite, ParallelTestSuite]) -> None:
|
||||
|
|
|
@ -367,7 +367,6 @@ ldap_logger = logging.getLogger("zulip.ldap")
|
|||
class ZulipLDAPException(_LDAPUser.AuthenticationFailed):
|
||||
"""Since this inherits from _LDAPUser.AuthenticationFailed, these will
|
||||
be caught and logged at debug level inside django-auth-ldap's authenticate()"""
|
||||
pass
|
||||
|
||||
class ZulipLDAPExceptionNoMatchingLDAPUser(ZulipLDAPException):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue