Removed Evil spaces

This commit is contained in:
madmaurice 2015-11-01 14:36:52 +01:00
parent c32a8ed722
commit 3396cf7802
7 changed files with 12 additions and 12 deletions

View file

@ -20,7 +20,7 @@ class CompileState(object):
cell = self.vars[name]
except KeyError:
return False
del self.vars[name]
self.cells.remove(cell)

View file

@ -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")

View file

@ -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()
Game().run()

View file

@ -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:

View file

@ -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()
main()

2
pso.py
View file

@ -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)

View file

@ -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))
print Zahlensystem(to).toNum(Zahlensystem(fr).fromNum(num))