Officially remove Python 2 support from this point forward
[pyelftools.git] / elftools / common / py3compat.py
index 46bbfb325ab09123fa14310f13d2af14b9bf4507..336164ebd4a709ca041ac4336f5b8276a061baa6 100644 (file)
@@ -8,6 +8,10 @@
 #-------------------------------------------------------------------------------
 import sys
 PY3 = sys.version_info[0] == 3
+assert PY3, '''\
+Python 2 is no longer supported by pyelftools; if you need to use Python 2,
+please download an older pyelftools version (such as version 0.29).
+'''
 
 
 if PY3: