From db528ec468767ce5ed9d4aac4a37a5f8f01ff60f Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 09 Apr 2012 13:08:36 +0000 Subject: pep8 cleanup --- (limited to 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index efebb96..c6c00b9 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -1076,7 +1076,7 @@ in order to use the plugin.')) tmp_dir = tempfile.mkdtemp() - if True: # try: + try: tar_fd.extractall(tmp_dir) if not plugin: # Looking for a .ta file @@ -1087,10 +1087,10 @@ in order to use the plugin.')) self.tw.load_files(turtle_code, run_it) else: self._load_a_plugin(tmp_dir) - else: # except: + except: _logger.debug('Could not extract files from %s.' % ( file_path)) - if True: # finally: + finally: if not plugin: shutil.rmtree(tmp_dir) tar_fd.close() -- cgit v0.9.1