1. Nikhil Marathe
  2. fileadelphia

Commits

Nikhil Marathe  committed aba50bd

Use push_state.

  • Participants
  • Parent commits e257933
  • Branches default

Comments (0)

Files changed (1)

File src/fileadelphia/main.py

View file
         if len(sys.argv) > 1:
         	directory = os.path.abspath(sys.argv[1])
 
-        self.state_stack.append(TransitionState(StartState(), City(directory)))
+        self.push_state(TransitionState(StartState(), City(directory)))
         self.time_prev = self.time_curr = self.milliseconds()
         self.accumulator = 0