python: Remove extra pass statements with autoflake.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-05-01 21:24:26 -07:00 committed by Tim Abbott
parent 8bcdf4ca97
commit cf923b49d3
4 changed files with 0 additions and 5 deletions

View File

@ -225,7 +225,6 @@ class FakeMessage:
We just need a stub object for do_render_markdown We just need a stub object for do_render_markdown
to write stuff to. to write stuff to.
''' '''
pass
def fix_message_rendered_content(realm: Realm, def fix_message_rendered_content(realm: Realm,
sender_map: Dict[int, Record], sender_map: Dict[int, Record],
@ -416,7 +415,6 @@ def re_map_foreign_keys_internal(data_table: List[Record],
# subscription object # subscription object
# check function 'get_huddles_from_subscription' # check function 'get_huddles_from_subscription'
ID_MAP['recipient_to_huddle_map'][item['id']] = lookup_table[old_id] ID_MAP['recipient_to_huddle_map'][item['id']] = lookup_table[old_id]
pass
else: else:
continue continue
old_id = item[field_name] old_id = item[field_name]

View File

@ -153,7 +153,6 @@ class RateLimiterBackend(ABC):
@abstractmethod @abstractmethod
def block_access(cls, entity_key: str, seconds: int) -> None: def block_access(cls, entity_key: str, seconds: int) -> None:
"Manually blocks an entity for the desired number of seconds" "Manually blocks an entity for the desired number of seconds"
pass
@classmethod @classmethod
@abstractmethod @abstractmethod

View File

@ -477,7 +477,6 @@ class Runner(DiscoverRunner):
shutil.rmtree(TEST_RUN_DIR) shutil.rmtree(TEST_RUN_DIR)
except OSError: except OSError:
print("Unable to clean up the test run's directory.") print("Unable to clean up the test run's directory.")
pass
return super().teardown_test_environment(*args, **kwargs) return super().teardown_test_environment(*args, **kwargs)
def test_imports(self, test_labels: List[str], suite: Union[TestSuite, ParallelTestSuite]) -> None: def test_imports(self, test_labels: List[str], suite: Union[TestSuite, ParallelTestSuite]) -> None:

View File

@ -367,7 +367,6 @@ ldap_logger = logging.getLogger("zulip.ldap")
class ZulipLDAPException(_LDAPUser.AuthenticationFailed): class ZulipLDAPException(_LDAPUser.AuthenticationFailed):
"""Since this inherits from _LDAPUser.AuthenticationFailed, these will """Since this inherits from _LDAPUser.AuthenticationFailed, these will
be caught and logged at debug level inside django-auth-ldap's authenticate()""" be caught and logged at debug level inside django-auth-ldap's authenticate()"""
pass
class ZulipLDAPExceptionNoMatchingLDAPUser(ZulipLDAPException): class ZulipLDAPExceptionNoMatchingLDAPUser(ZulipLDAPException):
pass pass