Remove Python 2 compat leftovers

This commit is contained in:
Mike Naberezny committed 2026-06-01 09:36:09 -07:00
1 parent c9e340b407
commit 3138e1b337
2 files changed
+5 -9

No files matched your search

+2 -4
View File
@@ -22,6 +22,8 @@ import shlex
import sys
import traceback
from urllib.request import urlopen
from py65.devices.mpu6502 import MPU as NMOS6502
from py65.devices.mpu65c02 import MPU as CMOS65C02
from py65.devices.mpu65org16 import MPU as V65Org16
@@ -32,10 +34,6 @@ from py65.utils import console
from py65.utils.conversions import itoa
from py65.memory import ObservableMemory
try:
from urllib2 import urlopen
except ImportError: # Python 3
from urllib.request import urlopen
class Monitor(cmd.Cmd):
+3 -5
View File
@@ -2,12 +2,10 @@ import unittest
import sys
import os
import tempfile
from py65.monitor import Monitor
try:
from StringIO import StringIO
except ImportError: # Python 3
from io import StringIO
from io import StringIO
from py65.monitor import Monitor
class MonitorTests(unittest.TestCase):