refactor not ... in to ... not in ...
This commit is contained in:
parent
fb18bb34cc
commit
81028f9a35
|
@ -58,7 +58,7 @@ class Encoder(object):
|
||||||
TODO: Support encoding aliases: pc437 instead of cp437.
|
TODO: Support encoding aliases: pc437 instead of cp437.
|
||||||
"""
|
"""
|
||||||
encoding = CodePages.get_encoding_name(encoding)
|
encoding = CodePages.get_encoding_name(encoding)
|
||||||
if not encoding in self.codepages:
|
if encoding not in self.codepages:
|
||||||
raise ValueError((
|
raise ValueError((
|
||||||
'Encoding "{}" cannot be used for the current profile. '
|
'Encoding "{}" cannot be used for the current profile. '
|
||||||
'Valid encodings are: {}'
|
'Valid encodings are: {}'
|
||||||
|
|
Loading…
Reference in New Issue