Skip to content

Commit

Permalink
Fill in missing TimeoutError for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Adelt committed Jan 24, 2021
1 parent ca856de commit 0dfcadb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlitedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def exec_(_code_, _globs_=None, _locs_=None):
_locs_ = _globs_
exec("""exec _code_ in _globs_, _locs_""")

class TimeoutError(OSError):
pass

exec_("def reraise(tp, value, tb=None):\n"
" raise tp, value, tb\n")
else:
Expand Down

0 comments on commit 0dfcadb

Please sign in to comment.