Skip to content

Commit 563d2ee

Browse files
committed
make variable names in remove_integer more aproppriate
backport of 710e7c8
1 parent 14abfe0 commit 563d2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecdsa/der.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def remove_integer(string):
115115
raise UnexpectedDER("0-byte long encoding of integer")
116116
numberbytes = string[1+llen:1+llen+length]
117117
rest = string[1+llen+length:]
118-
nbytes = numberbytes[0] if isinstance(numberbytes[0], integer_types) \
118+
msb = numberbytes[0] if isinstance(numberbytes[0], integer_types) \
119119
else ord(numberbytes[0])
120-
if not nbytes < 0x80:
120+
if not msb < 0x80:
121121
raise UnexpectedDER("Negative integers are not supported")
122122
return int(binascii.hexlify(numberbytes), 16), rest
123123

0 commit comments

Comments
 (0)