Replace str.find()!=1 with the more readable "in" operator.

This commit is contained in:
Raymond Hettinger 2004-05-04 09:21:43 +00:00
parent c5e378da41
commit bac788a3cd
7 changed files with 9 additions and 9 deletions

View file

@ -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')