mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-17 10:30:19 +00:00
Remove unnecessary upper()
>>> int('ffff',16) 65535 >>> int('FFFF',16) 65535
This commit is contained in:
parent
71073be244
commit
fe72839124
@ -78,10 +78,10 @@ class Monitor(cmd.Cmd):
|
|||||||
for opt, value in options:
|
for opt, value in options:
|
||||||
|
|
||||||
if opt in ('-i', '--input'):
|
if opt in ('-i', '--input'):
|
||||||
self.getc_addr = int(value.upper(), 16)
|
self.getc_addr = int(value, 16)
|
||||||
|
|
||||||
if opt in ('-o', '--output'):
|
if opt in ('-o', '--output'):
|
||||||
self.putc_addr = int(value.upper(), 16)
|
self.putc_addr = int(value, 16)
|
||||||
|
|
||||||
if opt in ('-l', '--load'):
|
if opt in ('-l', '--load'):
|
||||||
flag_load = True
|
flag_load = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user