From b7f98ffecd206158bcd31ee8334e093b8f240dda Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 25 Jul 2013 09:29:24 +0200 Subject: [PATCH] cosmetic changes --- ox/image.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ox/image.py b/ox/image.py index c4bbe83..c38693e 100644 --- a/ox/image.py +++ b/ox/image.py @@ -55,9 +55,7 @@ def getImageHash(image_file, mode): # 4 4 5 5 6 6 7 7 # 4 4 5 5 6 6 7 7 image_data = image.getdata() - zone_values = [] - for zone_index in range(8): - zone_values.append([]) + zone_values = 8 * [[]] for pixel_index, pixel_value in enumerate(image_data): zone_values[ZONE_INDEX[pixel_index]].append(pixel_value) for zone_index, pixel_values in enumerate(zone_values):