diff options
author | guillaumesottas <guillaumesottas@Guillaumes-MacBook-Pro.local> | 2019-03-26 17:12:24 -0600 |
---|---|---|
committer | guillaumesottas <guillaumesottas@Guillaumes-MacBook-Pro.local> | 2019-03-26 17:12:24 -0600 |
commit | 32db187887a1e6966cdf971b3f9496d71a645a69 (patch) | |
tree | 1f378984bfd9a3c33a77525b14eeb920dc3177a1 /cffi/cparser.py | |
parent | 23f4b0b03bb5acf8c4770979d45dceda3e056fe4 (diff) | |
download | cffi-32db187887a1e6966cdf971b3f9496d71a645a69.tar.gz |
remove useless try/catch, and remove unreachable elif statement.
Diffstat (limited to 'cffi/cparser.py')
-rw-r--r-- | cffi/cparser.py | 2 |
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]) |