mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
fixed hex/decimal confusion
This commit is contained in:
@@ -630,7 +630,7 @@ TypeError: unorderable types: int() >= str()</samp></pre>
|
||||
<del>- (aStr[1] <= '\xF1'):</del>
|
||||
<del>- return ord(aStr[1]) - 0x9F, charLen</del>
|
||||
<ins>+ if len(aBuf) > 1:</ins>
|
||||
<ins>+ if (aBuf[0] == 0x202) and \</ins>
|
||||
<ins>+ if (aBuf[0] == 202) and \</ins>
|
||||
<ins>+ (aBuf[1] >= 0x9F) and \</ins>
|
||||
<ins>+ (aBuf[1] <= 0xF1):</ins>
|
||||
<ins>+ return aBuf[1] - 0x9F, charLen</ins>
|
||||
|
||||
Reference in New Issue
Block a user