From 3396cf7802ee48093272e249578fa9eb7dc4587d Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sun, 1 Nov 2015 14:36:52 +0100 Subject: [PATCH] Removed Evil spaces --- bfcompiler.py | 2 +- chunksizer.py | 4 ++-- colortest.py | 6 +++--- deriver.py | 2 +- gerlang.py | 4 ++-- pso.py | 2 +- zahlensysteme.py | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bfcompiler.py b/bfcompiler.py index 96627ea..a5484d3 100644 --- a/bfcompiler.py +++ b/bfcompiler.py @@ -20,7 +20,7 @@ class CompileState(object): cell = self.vars[name] except KeyError: return False - + del self.vars[name] self.cells.remove(cell) diff --git a/chunksizer.py b/chunksizer.py index 986771c..1a1f228 100644 --- a/chunksizer.py +++ b/chunksizer.py @@ -26,7 +26,7 @@ def choosedir(): resultsFrame = Tkinter.Frame(mainFrame) resultsFrame.pack() - + infoFrame = Tkinter.LabelFrame(resultsFrame, text="Infos") labPath = Tkinter.Label(infoFrame, text="Verzeichnis: " + path ) labSize = Tkinter.Label(infoFrame, text="Groesse: " + str(dirsize/1024) + "KB" ) @@ -57,7 +57,7 @@ def choosedir(): closeBtn = Tkinter.Button(buttonFrame2, text="schliessen", command=mainFrame.destroy) closeBtn.pack() buttonFrame2.pack() - + window = Tkinter.Tk() window.title("Torrent Chunksize Calculator by BSOD") diff --git a/colortest.py b/colortest.py index b5a177a..10aa548 100644 --- a/colortest.py +++ b/colortest.py @@ -174,7 +174,7 @@ class SwarmMode(Mode): self.generateGravity() self.gtick = Tick(150) self.utick = Tick(2) - + def generateGravity(self): #self.gravity = tuple( randint(0,m) for m in [1280,800] ) self.gravity = Vector( (1280,800) )/2 @@ -209,7 +209,7 @@ class Game(object): def update(self): self.mode.update() - + def setmode(self,i): self.modeindex = i self.mode = self.modes[i%len(self.modes)](self.screen.get_size()) @@ -241,4 +241,4 @@ class Game(object): if __name__ == '__main__': - Game().run() \ No newline at end of file + Game().run() diff --git a/deriver.py b/deriver.py index a004394..359e675 100644 --- a/deriver.py +++ b/deriver.py @@ -199,7 +199,7 @@ class DRule: vpattern,vterm = queue[0] queue = queue[1:] - if vpattern.__class__ == IdMark: + if vpattern.__class__ == IdMark: if vpattern.constant and not vterm.is_constant(idv): return None elif vpattern.idv in id_dict: diff --git a/gerlang.py b/gerlang.py index dd2e62a..53593d9 100644 --- a/gerlang.py +++ b/gerlang.py @@ -34,7 +34,7 @@ class TokenListAnalyzer(Analyzer): def takeUntil(self,condition, dropEnd=True): t = [] - while self.next() is not None and not condition(self.next()): + while self.next() is not None and not condition(self.next()): t.append( self.take() ) if dropEnd and self.next() is not None: self.take() @@ -237,4 +237,4 @@ def main(): term.run(context) if __name__ == '__main__': - main() \ No newline at end of file + main() diff --git a/pso.py b/pso.py index 6d989c2..ebfe212 100644 --- a/pso.py +++ b/pso.py @@ -127,7 +127,7 @@ class Swarm: if __name__ == '__main__': swarm = Swarm( 20, ParticleCreator([(-2000.0,2000.0),(-2000.0,2000.0)]), Fitness(), 1, 0.4, 0.2 ) - + iterations = 10000 swarm.stepN(iterations) diff --git a/zahlensysteme.py b/zahlensysteme.py index 2bdf45e..8bd858f 100644 --- a/zahlensysteme.py +++ b/zahlensysteme.py @@ -38,7 +38,7 @@ class Zahlensystem: f = self.chars[:self.basis].index(c.upper()) except ValueError: raise NumberException("%d isn't a %d based number" % (f,self.basis)) - + value += f * self.basis**e return value @@ -81,4 +81,4 @@ if __name__ == '__main__': fr = int(raw_input("From> ")) to = int(raw_input("To> ")) - print Zahlensystem(to).toNum(Zahlensystem(fr).fromNum(num)) \ No newline at end of file + print Zahlensystem(to).toNum(Zahlensystem(fr).fromNum(num))