python/watch
Nabarun Pal a54f404366
Fix a Python 2 compatibility issue
PR #133 introduces the usage of `http` module for checking the status
code for `GONE` HTTP status. However, this doesn't work in Python 2.7.

This commit checks if the interpreter is Python 2 and imports the
status code from `httplib` module instead and unifies the approach
to the checks.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 14:05:04 +05:30
..
__init__.py Remove all shebangs from Python modules and checker 2019-08-27 22:18:52 +02:00
watch_test.py Retry watch if request expires. 2020-07-15 12:27:32 -07:00
watch.py Fix a Python 2 compatibility issue 2020-07-16 14:05:04 +05:30