mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-01 10:05:50 +00:00
Make flake8 for Python 3 shut up
This commit is contained in:
parent
a2f9a38e02
commit
a1063b0e06
3 changed files with 4 additions and 4 deletions
|
|
@ -42,8 +42,8 @@ class StorageTests(object):
|
|||
hrefs.sort()
|
||||
assert hrefs == sorted(s.list())
|
||||
for href, etag in hrefs:
|
||||
assert isinstance(href, (str, unicode))
|
||||
assert isinstance(etag, (str, unicode))
|
||||
assert isinstance(href, (text_type, bytes))
|
||||
assert isinstance(etag, (text_type, bytes))
|
||||
assert s.has(href)
|
||||
item, etag2 = s.get(href)
|
||||
assert etag == etag2
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ def test_parse_options():
|
|||
# Yes, we want a very strong typecheck here, because we actually have
|
||||
# to differentiate between bool and int, and in Python 2, bool is a
|
||||
# subclass of int.
|
||||
assert type(a[key]) is type(expected[key])
|
||||
assert type(a[key]) is type(expected[key]) # flake8: noqa
|
||||
|
||||
|
||||
def test_get_password_from_netrc(monkeypatch):
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ PY2 = sys.version_info[0] == 2
|
|||
|
||||
if PY2:
|
||||
import urlparse
|
||||
text_type = unicode
|
||||
text_type = unicode # flake8: noqa
|
||||
iteritems = lambda x: x.iteritems()
|
||||
itervalues = lambda x: x.itervalues()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue