diff options
author | Fedja Beader <fedja@protonmail.ch> | 2023-12-10 22:13:13 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2023-12-10 22:13:13 +0100 |
commit | 2a2b8e705ea888e4852fe5ee9095b7269af6cb27 (patch) | |
tree | 651becc372b3c561b411afbc8831b732656d12ea | |
parent | 2617eddf316a50032775c438d165f64eb557cc0d (diff) | |
download | tmwa-2a2b8e705ea888e4852fe5ee9095b7269af6cb27.tar.gz tmwa-2a2b8e705ea888e4852fe5ee9095b7269af6cb27.tar.bz2 tmwa-2a2b8e705ea888e4852fe5ee9095b7269af6cb27.tar.xz tmwa-2a2b8e705ea888e4852fe5ee9095b7269af6cb27.zip |
Update debug-debug-scripts to py3
2to3 produces working result, output files match py2 output by checksum.
-rwxr-xr-x | tools/debug-debug-scripts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/debug-debug-scripts b/tools/debug-debug-scripts index 2d027fc..c35f6d5 100755 --- a/tools/debug-debug-scripts +++ b/tools/debug-debug-scripts @@ -1,6 +1,6 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # encoding: utf-8 -from __future__ import print_function + copyright = ''' // Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com> @@ -38,7 +38,7 @@ def eprint(s): def get_classes_from_file(a): global error d = {} - execfile(a, d) + exec(compile(open(a, "rb").read(), a, 'exec'), d) for (k, v) in sorted(d.items()): try: name = v.name |