From 214a447d606671766b5fb404a50f3af4f24369e4 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 25 Sep 2012 23:36:31 +0200 Subject: removed this ugly and useless hack that shits up my pretty file handling code --- src/mapfile.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/mapfile.py b/src/mapfile.py index 27e2ff9..29e187e 100644 --- a/src/mapfile.py +++ b/src/mapfile.py @@ -81,11 +81,7 @@ def load(string): try: setattr(obj, attrName, source[attrName]) except: - if attrName == 'folder': - obj.folder = '' - - else: - print "{0} was missing the attribute {1}".format(obj, attrName) + print "{0} was missing the attribute {1}".format(obj, attrName) if hasattr(obj, '_preload'): obj._preload(source) -- cgit v1.2.3