Create empty dict via literal syntax instead of function call.

This commit is contained in:
Jochen Kupperschmidt
2016-06-05 22:46:25 +02:00
parent c7ffdcde4d
commit bb31c8eb46

View File

@ -162,7 +162,7 @@ IMAGES = {
def load_images(img_names):
"""loads user images from given file(s)"""
if img_names[0] == '':
return dict()
return {}
for image_name in img_names:
img = open(image_name)