mirror of
https://github.com/iKarith/cppo-ng.git
synced 2025-02-07 22:30:42 +00:00
Make cppo require python3
This commit is contained in:
parent
8254fd886d
commit
567f1f2a8b
13
cppo
13
cppo
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=python:
|
||||
|
||||
"""cppo: Copy/catalog files from a ProDOS/DOS 3.3/ShrinkIt image/archive.
|
||||
@ -27,12 +27,6 @@ ShrinkIt support requires Nulib2. cppo requires Python 2.6+ or 3.0+."""
|
||||
|
||||
# Does anyone want to rewrite/refactor this? It works, but it's a mess.
|
||||
|
||||
# imports for python 3 code compatibility
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
|
||||
import sys
|
||||
import os
|
||||
import time
|
||||
@ -44,10 +38,7 @@ import subprocess
|
||||
import tempfile
|
||||
from binascii import a2b_hex, b2a_hex
|
||||
|
||||
# Intentionally fails on pre-2.6 (no b'') so user can see what's wrong
|
||||
b'ERROR: cppo requires Python 2.6 or later, including 3.x.'
|
||||
|
||||
class Globals(object):
|
||||
class Globals:
|
||||
pass
|
||||
|
||||
g = Globals()
|
||||
|
Loading…
x
Reference in New Issue
Block a user