From 61b766ceb3aab1ee7b73008639972e8f6d802e11 Mon Sep 17 00:00:00 2001 From: Nicolas Appriou Date: Sat, 24 Jun 2017 18:26:41 +0200 Subject: [PATCH] remove unneeded code The image variable is local to the function. There is no need to delete it. --- src/qrtools.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qrtools.py b/src/qrtools.py index ad7316c..9131399 100644 --- a/src/qrtools.py +++ b/src/qrtools.py @@ -175,8 +175,6 @@ def decode(self, filename=None): else: for symbol in image: pass - # clean up - del(image) # Assuming data is encoded in utf8 self.data = symbol.data.decode(u'utf-8') self.data_type = self.data_recognise()