Fix some unidiomatic comparisons.

This commit is contained in:
Florian Bruhin 2015-11-30 07:10:21 +01:00
parent e227712e21
commit 288bf1524e
2 changed files with 5 additions and 5 deletions

View File

@ -424,7 +424,7 @@ def same_domain(url1, url2):
if suffix1 == '':
return url1.host() == url2.host()
if not suffix1 == suffix2:
if suffix1 != suffix2:
return False
domain1 = url1.host()[:-len(suffix1)].split('.')[-1]

View File

@ -1984,10 +1984,10 @@ class TestConfirmQuit:
assert 'never' in completions
assert 'multiple-tabs,downloads' in completions
for val in completions:
assert not 'always,' in val
assert not ',always' in val
assert not 'never,' in val
assert not ',never' in val
assert 'always,' not in val
assert ',always' not in val
assert 'never,' not in val
assert ',never' not in val
class TestFormatString: