diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-10-20 11:16:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 11:16:55 +1100 |
commit | e1728dfcbe585edfb590bce50adeaab341a70db8 (patch) | |
tree | 0ae215c46f15ecc917bf45d75430298a003b0e27 /synapse/util/caches | |
parent | Merge branch 'rav/fix_email_templates_4065' into develop (diff) | |
download | synapse-e1728dfcbe585edfb590bce50adeaab341a70db8.tar.xz |
Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase on py3) (#4068)
Diffstat (limited to 'synapse/util/caches')
-rw-r--r-- | synapse/util/caches/stream_change_cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py index f2bde74dc5..625aedc940 100644 --- a/synapse/util/caches/stream_change_cache.py +++ b/synapse/util/caches/stream_change_cache.py @@ -15,6 +15,8 @@ import logging +from six import integer_types + from sortedcontainers import SortedDict from synapse.util import caches @@ -47,7 +49,7 @@ class StreamChangeCache(object): def has_entity_changed(self, entity, stream_pos): """Returns True if the entity may have been updated since stream_pos """ - assert type(stream_pos) is int or type(stream_pos) is long + assert type(stream_pos) in integer_types if stream_pos < self._earliest_known_stream_pos: self.metrics.inc_misses() |