aboutsummaryrefslogtreecommitdiff
path: root/proposals/reindex.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-27 10:18:21 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-27 10:42:38 -0400
commitea85e63de494d5ad18b587ded43f6fa437d4873c (patch)
treeea62687e4e0e032d84f441bbfc1edc8d4244348d /proposals/reindex.py
parent3395172250079bd0c9f20936037b3f9c2c23cc4d (diff)
downloadtorspec-ea85e63de494d5ad18b587ded43f6fa437d4873c.tar.gz
torspec-ea85e63de494d5ad18b587ded43f6fa437d4873c.zip
reindex.py: drop python2 support.
Diffstat (limited to 'proposals/reindex.py')
-rwxr-xr-xproposals/reindex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/proposals/reindex.py b/proposals/reindex.py
index 361ea16..07dd17a 100755
--- a/proposals/reindex.py
+++ b/proposals/reindex.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python
-# Future imports for Python 2.7, mandatory in 3.0
-from __future__ import division
-from __future__ import print_function
-from __future__ import unicode_literals
+import sys
+if sys.version_info[0] < 3:
+ print("No support for Python 2.")
+ sys.exit(1)
import codecs, re, os
class Error(Exception): pass