aboutsummaryrefslogtreecommitdiff
path: root/parse_opcodes
diff options
context:
space:
mode:
authorZenithal <i@zenithal.me>2022-04-03 16:57:59 +0800
committerGitHub <noreply@github.com>2022-04-03 01:57:59 -0700
commitdd2e9229b5bfb3d5fd37a02ca2f99debb2321fd1 (patch)
tree1c47ddbf53d11675070d505aae07f9174ba9dfdb /parse_opcodes
parentbaa66b931d6563d5121cfd2cfd5829b758e462be (diff)
downloadriscv-opcodes-dd2e9229b5bfb3d5fd37a02ca2f99debb2321fd1.zip
riscv-opcodes-dd2e9229b5bfb3d5fd37a02ca2f99debb2321fd1.tar.gz
riscv-opcodes-dd2e9229b5bfb3d5fd37a02ca2f99debb2321fd1.tar.bz2
Modernize to Python 3 (#104)
Python2 has already been deprecated in 2020 This also removes the dependency of python2-future Ref to #22
Diffstat (limited to 'parse_opcodes')
-rwxr-xr-xparse_opcodes5
1 files changed, 1 insertions, 4 deletions
diff --git a/parse_opcodes b/parse_opcodes
index 5f2ebb8..a9445bc 100755
--- a/parse_opcodes
+++ b/parse_opcodes
@@ -1,8 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
-from __future__ import print_function
-from builtins import hex
-from builtins import range
import math
import sys
import tokenize