diff options
author | André Erdmann <dywi@mailerd.de> | 2013-12-11 19:30:38 +0100 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2013-12-11 19:31:55 +0100 |
commit | af769bd915d90b6bf3c7523b5cf0ce164a24233e (patch) | |
tree | 864803390514da3b3a3fd5e3262ab54cddfd3e7d /roverlay/util | |
parent | remove useless return statements (diff) | |
download | R_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.py | 1 |
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 ( |