|
Lines 85-91
Link Here
|
| 85 |
return None |
85 |
return None |
| 86 |
|
86 |
|
| 87 |
def GetMapName(ini): |
87 |
def GetMapName(ini): |
| 88 |
cp = ConfigParser.RawConfigParser() |
88 |
cp = ConfigParser.RawConfigParser(allow_no_value=True) |
| 89 |
try: |
89 |
try: |
| 90 |
cp.readfp(ini) |
90 |
cp.readfp(ini) |
| 91 |
except: |
91 |
except: |
|
Lines 105-111
Link Here
|
| 105 |
return None |
105 |
return None |
| 106 |
|
106 |
|
| 107 |
def GetMapVec(ini): |
107 |
def GetMapVec(ini): |
| 108 |
cp = ConfigParser.RawConfigParser() |
108 |
cp = ConfigParser.RawConfigParser(allow_no_value=True) |
| 109 |
try: |
109 |
try: |
| 110 |
cp.readfp(ini) |
110 |
cp.readfp(ini) |
| 111 |
except: |
111 |
except: |
|
Lines 568-574
Link Here
|
| 568 |
self.Graph[i] = filter(lambda a: a[0] not in uclist, self.Graph[i]) |
568 |
self.Graph[i] = filter(lambda a: a[0] not in uclist, self.Graph[i]) |
| 569 |
|
569 |
|
| 570 |
def _load_vec(self): |
570 |
def _load_vec(self): |
| 571 |
cp = ConfigParser.RawConfigParser() |
571 |
cp = ConfigParser.RawConfigParser(allow_no_value=True) |
| 572 |
try: |
572 |
try: |
| 573 |
cp.readfp(self.vec) |
573 |
cp.readfp(self.vec) |
| 574 |
except: #ConfigParser.readfp raises exception, when he thinks, |
574 |
except: #ConfigParser.readfp raises exception, when he thinks, |
|
Lines 594-600
Link Here
|
| 594 |
self.Stations[st]['vfile'] = cp_get(cp, section, self.Stations[st]['name_orig'], None) |
594 |
self.Stations[st]['vfile'] = cp_get(cp, section, self.Stations[st]['name_orig'], None) |
| 595 |
|
595 |
|
| 596 |
def _load(self): |
596 |
def _load(self): |
| 597 |
cp = ConfigParser.RawConfigParser() |
597 |
cp = ConfigParser.RawConfigParser(allow_no_value=True) |
| 598 |
try: |
598 |
try: |
| 599 |
cp.readfp(self.ini) |
599 |
cp.readfp(self.ini) |
| 600 |
except: #ConfigParser.readfp raises exception, when he thinks, |
600 |
except: #ConfigParser.readfp raises exception, when he thinks, |
|
Lines 945-951
Link Here
|
| 945 |
self.name = None |
945 |
self.name = None |
| 946 |
self.data = dict() |
946 |
self.data = dict() |
| 947 |
self.enc = encoding |
947 |
self.enc = encoding |
| 948 |
cp = ConfigParser.RawConfigParser() |
948 |
cp = ConfigParser.RawConfigParser(allow_no_value=True) |
| 949 |
try: |
949 |
try: |
| 950 |
cp.readfp(infodata) |
950 |
cp.readfp(infodata) |
| 951 |
except: |
951 |
except: |