mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Replace str.find()!=1 with the more readable "in" operator.
This commit is contained in:
parent
c5e378da41
commit
bac788a3cd
7 changed files with 9 additions and 9 deletions
|
@ -289,7 +289,7 @@ class GNUTranslations(NullTranslations):
|
|||
# cause no problems since us-ascii should always be a subset of
|
||||
# the charset encoding. We may want to fall back to 8-bit msgids
|
||||
# if the Unicode conversion fails.
|
||||
if msg.find('\x00') >= 0:
|
||||
if '\x00' in msg:
|
||||
# Plural forms
|
||||
msgid1, msgid2 = msg.split('\x00')
|
||||
tmsg = tmsg.split('\x00')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue