aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-12-11 19:30:38 +0100
committerAndré Erdmann <dywi@mailerd.de>2013-12-11 19:31:55 +0100
commitaf769bd915d90b6bf3c7523b5cf0ce164a24233e (patch)
tree864803390514da3b3a3fd5e3262ab54cddfd3e7d /roverlay/util
parentremove useless return statements (diff)
downloadR_overlay-af769bd915d90b6bf3c7523b5cf0ce164a24233e.tar.gz
R_overlay-af769bd915d90b6bf3c7523b5cf0ce164a24233e.tar.bz2
R_overlay-af769bd915d90b6bf3c7523b5cf0ce164a24233e.zip
minor fixes
This commit fixes some issues, most of them are theoretical only, e.g. variables that might be accessed before assignment in with/try..except blocks.
Diffstat (limited to 'roverlay/util')
-rw-r--r--roverlay/util/mapreader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/roverlay/util/mapreader.py b/roverlay/util/mapreader.py
index 1c398a7..36f4ba7 100644
--- a/roverlay/util/mapreader.py
+++ b/roverlay/util/mapreader.py
@@ -151,6 +151,7 @@ class MapFileParser ( object ):
# --- end of read_lines (...) ---
def read_file ( self, filepath, handle_compressed=True ):
+ ret = None
try:
if handle_compressed:
ret = self.read_lines (