From c48a0bee5119b58715febafbfa263332dfdc1252 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Mon, 30 Jan 2017 00:50:58 +0100 Subject: [PATCH] use not in instead of not ... in --- src/escpos/capabilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/escpos/capabilities.py b/src/escpos/capabilities.py index 3ff9e20..e4f1a18 100644 --- a/src/escpos/capabilities.py +++ b/src/escpos/capabilities.py @@ -77,7 +77,7 @@ def get_profile_class(name): """For the given profile name, load the data from the external database, then generate dynamically a class. """ - if not name in CLASS_CACHE: + if name not in CLASS_CACHE: profile_data = PROFILES[name] profile_name = clean(name) class_name = '{}{}Profile'.format(