mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Hexadecimal can be written as 0X
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ def strtol(value, strict=True):
|
|||||||
if i < l and value[i].isdigit():
|
if i < l and value[i].isdigit():
|
||||||
if value[i] == '0':
|
if value[i] == '0':
|
||||||
i += 1
|
i += 1
|
||||||
if i < l and value[i] == 'x': # '0' followed by 'x': HEX
|
if i < l and value[i] in ('x', 'X'): # '0' followed by 'x': HEX
|
||||||
base = 16
|
base = 16
|
||||||
i += 1
|
i += 1
|
||||||
else: # just starts with '0': OCT
|
else: # just starts with '0': OCT
|
||||||
|
|||||||
Reference in New Issue
Block a user