This commit is contained in:
Daid committed 2012-04-28 18:32:34 +02:00
1 parent e433f3e79d
commit ffb6b42d5d
1 file changed
+6 -4
+6 -4
View File
@@ -177,10 +177,12 @@ def getGlobalProfileString():
p = []
alt = []
for key in globalProfileParser.options('profile'):
p.append(key + "=" + globalProfileParser.get('profile', key))
for key in globalProfileParser.options('alterations'):
alt.append(key + "=" + globalProfileParser.get('alterations', key))
if globalProfileParser.has_section('profile'):
for key in globalProfileParser.options('profile'):
p.append(key + "=" + globalProfileParser.get('profile', key))
if globalProfileParser.has_section('alterations'):
for key in globalProfileParser.options('alterations'):
alt.append(key + "=" + globalProfileParser.get('alterations', key))
ret = '\b'.join(p) + '\f' + '\b'.join(alt)
ret = base64.b64encode(zlib.compress(ret, 9))
return ret