Skip to content

Commit

Permalink
fixed noun.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mopfel-winrux committed Jun 19, 2023
1 parent f94d086 commit ca916ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions urth/noun.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,6 @@ def cue(i: int):
i >>= 1
return cue_from_stream(s)

def cue_newt(bytestream: bytes):
return cue(int.from_bytes(bytestream[5:], 'little'))

if '__main__' == __name__:
import doctest
doctest.testmod()
2 changes: 1 addition & 1 deletion urth/snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys

def cue_noun(data):
x = cue_newt(data)
x = cue(int.from_bytes(data[5:], 'little'))

hed_len = (x.head.bit_length()+7)//8
mark = x.head.to_bytes(hed_len,'little').decode()
Expand Down

0 comments on commit ca916ca

Please sign in to comment.