You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class CookieJar(RAMCookieJar):
def purge_old_cookies(self):
cookies = [c for c in self.allCookies()
if c.isSessionCookie() or c.expirationDate() >= now]
I get:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/__main__.py", line 18, in <module>
sys.exit(yapf.main(sys.argv))
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/__init__.py", line 102, in main
print_diff=args.diff)
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/__init__.py", line 124, in FormatFiles
filename, style_config=style_config, lines=lines, print_diff=print_diff)
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/yapflib/yapf_api.py", line 68, in FormatFile
print_diff=print_diff)
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/yapflib/yapf_api.py", line 101, in FormatCode
uwl.CalculateFormattingInformation()
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/yapflib/unwrapped_line.py", line 77, in CalculateFormattingInformation
token.split_penalty += _SplitPenalty(prev_token, token)
File "/home/florian/proj/qutebrowser/.venv/lib/python3.4/site-packages/yapf/yapflib/unwrapped_line.py", line 342, in _SplitPenalty
if cur_token.node_split_penalty > 0:
TypeError: unorderable types: NoneType() > int()
The text was updated successfully, but these errors were encountered:
When running yapf over this code:
I get:
The text was updated successfully, but these errors were encountered: