diff skaapsteker/dialogue.py @ 632:0675f390653c

Initial port to Python 3 and Pygame 2.
author Simon Cross <hodgestar@gmail.com>
date Fri, 20 Jan 2023 20:01:06 +0100
parents a91b2e4400a5
children
line wrap: on
line diff
--- a/skaapsteker/dialogue.py	Tue Mar 17 22:40:45 2020 +0200
+++ b/skaapsteker/dialogue.py	Fri Jan 20 20:01:06 2023 +0100
@@ -25,8 +25,8 @@
         self.world = world
         self._me = getattr(self.world.npcs, name)
         self.states = AttrDict()
-        src = json.loads(data.load(json_filename).read(), encoding='utf-8')
-        for state, state_src in src.iteritems():
+        src = json.loads(data.load(json_filename).read())
+        for state, state_src in src.items():
             pseudo_path = [json_filename, state]
             self.states[state] = DsmState(state, state_src, pseudo_path)
         assert self.state in self.states, "DSM must have start state %r" % (self.state,)