diff options
author | 2020-02-27 17:03:03 +0100 | |
---|---|---|
committer | 2020-02-27 17:03:03 +0100 | |
commit | ff421a59c1cd0e32cc18bc7523905caca9b62ec7 (patch) | |
tree | 6c64c3246a23568e742e6e39aeec2b92a4fedd73 /pypy/objspace/std/bytesobject.py | |
parent | not sure why I added this, it is wrong (test added), and not needed (diff) | |
download | pypy-ff421a59c1cd0e32cc18bc7523905caca9b62ec7.tar.gz pypy-ff421a59c1cd0e32cc18bc7523905caca9b62ec7.tar.bz2 pypy-ff421a59c1cd0e32cc18bc7523905caca9b62ec7.zip |
help the annotator use a more efficient comparison
Diffstat (limited to 'pypy/objspace/std/bytesobject.py')
-rw-r--r-- | pypy/objspace/std/bytesobject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pypy/objspace/std/bytesobject.py b/pypy/objspace/std/bytesobject.py index b762f21c52..d4cb3555a4 100644 --- a/pypy/objspace/std/bytesobject.py +++ b/pypy/objspace/std/bytesobject.py @@ -38,7 +38,7 @@ class W_AbstractBytesObject(W_Root): if len(s2) > 1: return s1 is s2 else: # strings of len <= 1 are unique-ified - return s1 == s2 + return s1[0] == s2[0] def immutable_unique_id(self, space): if self.user_overridden_class: |