Skip to content

Commit 710e7c8

Browse files
committed
make variable names in remove_integer more aproppriate
1 parent 091ca06 commit 710e7c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecdsa/der.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def remove_integer(string):
133133
raise UnexpectedDER("0-byte long encoding of integer")
134134
numberbytes = string[1+llen:1+llen+length]
135135
rest = string[1+llen+length:]
136-
nbytes = numberbytes[0] if isinstance(numberbytes[0], integer_types) \
136+
msb = numberbytes[0] if isinstance(numberbytes[0], integer_types) \
137137
else ord(numberbytes[0])
138-
if not nbytes < 0x80:
138+
if not msb < 0x80:
139139
raise UnexpectedDER("Negative integers are not supported")
140140
return int(binascii.hexlify(numberbytes), 16), rest
141141

0 commit comments

Comments
 (0)