From 81028f9a352d2de4186a9bcc46fac0bd002d3536 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Mon, 30 Jan 2017 02:16:22 +0100 Subject: [PATCH] refactor not ... in to ... not in ... --- src/escpos/magicencode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/escpos/magicencode.py b/src/escpos/magicencode.py index 9c71ea0..a989118 100644 --- a/src/escpos/magicencode.py +++ b/src/escpos/magicencode.py @@ -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: {}'