mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
superfluous function removed
This commit is contained in:
parent
baf79bd3dd
commit
ce606bbaad
@ -26,13 +26,6 @@ __revision__ = "$Revision$"
|
|||||||
__date__ = "$Date$"
|
__date__ = "$Date$"
|
||||||
|
|
||||||
|
|
||||||
def _int2bitstring(num):
|
|
||||||
if num == 0:
|
|
||||||
return '0'
|
|
||||||
if abs(num) == 1:
|
|
||||||
return '1'
|
|
||||||
return _int2bitstring(num // 2) + _int2bitstring(num % 2)
|
|
||||||
|
|
||||||
def _int2bitstring(num):
|
def _int2bitstring(num):
|
||||||
if num == 0:
|
if num == 0:
|
||||||
return '0'
|
return '0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user