mirror of
https://github.com/iKarith/cppo-ng.git
synced 2024-06-01 06:41:27 +00:00
isnumber is no longer used
This commit is contained in:
parent
e0582bf0cf
commit
71b4375416
|
@ -823,18 +823,6 @@ def dopo_swap(image_data):
|
||||||
dopo[dst:dst+256] = image_data[src:src+256]
|
dopo[dst:dst+256] = image_data[src:src+256]
|
||||||
return bytes(dopo)
|
return bytes(dopo)
|
||||||
|
|
||||||
def isnumber(number):
|
|
||||||
try: # make sure it's not a string
|
|
||||||
len(number)
|
|
||||||
return False
|
|
||||||
except TypeError:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
int(number)
|
|
||||||
except ValueError:
|
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
#---- end IvanX general purpose functions ----#
|
#---- end IvanX general purpose functions ----#
|
||||||
|
|
||||||
def run_cppo():
|
def run_cppo():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user