We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d886d32 commit 9f4903dCopy full SHA for 9f4903d
hexs/hexs.py
@@ -13,7 +13,9 @@ def is_hex(s):
13
14
def format_hex(s):
15
"""Remove extraneous characters from s and make its length even."""
16
- return make_even(s.lstrip('0x').rstrip('L'))
+ while s.startswith('0x'):
17
+ s = s[2:]
18
+ return make_even(s.rstrip('L'))
19
20
def hexs(arg):
21
"""Return the formatted hex representation of arg."""
setup.py
@@ -1,6 +1,6 @@
1
from setuptools import setup, find_packages
2
3
-version = '1.0.0'
+version = '1.1.0'
4
5
6
setup(
0 commit comments