refactor not ... in to ... not in ...

This commit is contained in:
Patrick Kanzler 2017-01-30 02:16:22 +01:00
parent fb18bb34cc
commit 81028f9a35
No known key found for this signature in database
GPG Key ID: F07F07153306FCEF
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class Encoder(object):
TODO: Support encoding aliases: pc437 instead of cp437.
"""
encoding = CodePages.get_encoding_name(encoding)
if not encoding in self.codepages:
if encoding not in self.codepages:
raise ValueError((
'Encoding "{}" cannot be used for the current profile. '
'Valid encodings are: {}'