mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-03 09:19:59 +00:00
use not in instead of not ... in
This commit is contained in:
@@ -77,7 +77,7 @@ def get_profile_class(name):
|
|||||||
"""For the given profile name, load the data from the external
|
"""For the given profile name, load the data from the external
|
||||||
database, then generate dynamically a class.
|
database, then generate dynamically a class.
|
||||||
"""
|
"""
|
||||||
if not name in CLASS_CACHE:
|
if name not in CLASS_CACHE:
|
||||||
profile_data = PROFILES[name]
|
profile_data = PROFILES[name]
|
||||||
profile_name = clean(name)
|
profile_name = clean(name)
|
||||||
class_name = '{}{}Profile'.format(
|
class_name = '{}{}Profile'.format(
|
||||||
|
Reference in New Issue
Block a user