double if statement (#707)
* Migrated `%` string formating * double if statement combined double 'if' to a single 'if' with 'and' * Revert "Fix "Prefer `format()` over string interpolation operator" issue"
This commit is contained in:
parent
23ee9f64d4
commit
f39512aa63
|
@ -116,8 +116,7 @@ class Cookie(dict):
|
||||||
))
|
))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
output.append('%s=%s' % (self._keys[key], value))
|
output.append('%s=%s' % (self._keys[key], value))
|
||||||
elif key in self._flags:
|
elif key in self._flags and self[key]:
|
||||||
if self[key]:
|
|
||||||
output.append(self._keys[key])
|
output.append(self._keys[key])
|
||||||
else:
|
else:
|
||||||
output.append('%s=%s' % (self._keys[key], value))
|
output.append('%s=%s' % (self._keys[key], value))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user