Remove superfluous whitespaces

This commit is contained in:
Dominik
2014-12-21 16:06:32 +01:00
parent bca1fe3656
commit 1e7492a806

View File

@@ -380,7 +380,6 @@ class CardGenerator(object):
if sam != None:
self.sam = sam
def loadCard(self, filename):
"""Load a card from disk"""
db = anydbm.open(filename, 'r')
@@ -420,18 +419,6 @@ class CardGenerator(object):
db["version"] = "0.1"
db.close()
def readDatagroups(self, datasetfile):
"""Read Datagroups from file"""
with open(datasetfile, 'r') as f:
for line in f:
if (not line.startswith("#")) and (not len(line.strip()) == 0):
# spaces after equal sign are allowed to get strings with leading spaces!
line=line.replace(" =", "=")
splitLine = line.split("=")
# we don't want to have the newline char from dataset file as part of the value!!
self.datagroups[splitLine[0]] = splitLine[1].rstrip("\n\r")
f.close()
if __name__ == "__main__":
from optparse import OptionParser
parser = OptionParser()