Fix Python 3.7 support, and run Travis tests on 3.7.

Travis' "nightly" python is actually older than 3.7.0 (3.7.0a4+)
This commit is contained in:
Valentin Lorentz 2018-09-10 00:57:04 +02:00
parent fb3c8978b5
commit 1f400e4020
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,7 @@ python:
- "3.4"
- "3.5"
- "3.6"
- "nightly"
- "3.7-dev"
- "pypy"
- "pypy-5.3.1" # default pypy3 doesn't work, see https://bitbucket.org/pypy/pypy/issues/2129/local-variable-val-referenced-before
env:

View File

@ -196,7 +196,6 @@ class ChannelUserDictionary(collections.MutableMapping):
for channel, ids in self.channels.items():
for id_, value in ids.items():
yield (channel, id_)
raise StopIteration()
def __len__(self):
return sum([len(x) for x in self.channels])