1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Removed unused function

This commit is contained in:
Ross Wilson 2016-01-26 13:58:30 +07:00
parent 61122bb354
commit 189079a9c7

View File

@ -92,25 +92,6 @@ def error(msg):
print(msg)
sys.exit(10)
def str2int(s):
"""Convert string to numeric value.
s numeric string (decimal or octal)
Returns the numeric value.
"""
base = 10
if s[0] == '0':
base = 8
try:
value = int(s, base=base)
except:
return None
return value
def write_list(code, addr, lnum, line):
"""Generate one line of listing file.