summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorguillaumesottas <guillaumesottas@Guillaumes-MacBook-Pro.local>2019-03-26 17:12:24 -0600
committerguillaumesottas <guillaumesottas@Guillaumes-MacBook-Pro.local>2019-03-26 17:12:24 -0600
commit32db187887a1e6966cdf971b3f9496d71a645a69 (patch)
tree1f378984bfd9a3c33a77525b14eeb920dc3177a1 /cffi
parent23f4b0b03bb5acf8c4770979d45dceda3e056fe4 (diff)
downloadcffi-32db187887a1e6966cdf971b3f9496d71a645a69.tar.gz
remove useless try/catch, and remove unreachable elif statement.
Diffstat (limited to 'cffi')
-rw-r--r--cffi/cparser.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/cffi/cparser.py b/cffi/cparser.py
index a8e390e..d794139 100644
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -833,8 +833,6 @@ class Parser(object):
elif s.lower()[0:2] == '0b':
return int(s, 2)
raise CDefError("invalid constant %r" % (s,))
- elif '1' <= s[0] <= '9':
- return int(s, 10)
elif s[0] == "'" and s[-1] == "'" and (
len(s) == 3 or (len(s) == 4 and s[1] == "\\")):
return ord(s[-2])