]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - misc/simulators/simulator.py
Fix pyflakes warnings in misc/ directories other than misc/build_helpers. refs #1557
[tahoe-lafs/tahoe-lafs.git] / misc / simulators / simulator.py
index adf674ded239aec839d8270fa79dee2842b0cd5d..10a5494f97418da47c1a8ffdba9d9d3dc14334ba 100644 (file)
@@ -54,7 +54,6 @@ class Node:
         return (True, tried)
 
     def accept_share(self, fileid, sharesize):
-        accept = False
         if self.utilization < self.capacity:
             # we have room! yay!
             self.shares[fileid] = sharesize
@@ -244,7 +243,7 @@ class Simulator:
     def do_event(self):
         time, etype = self.next.pop(0)
         assert time > self.time
-        current_time = self.time
+        current_time = self.time
         self.time = time
         self._add_event(etype)
         if etype == "ADDFILE":