Use type(self) instead of self.__class__

This commit is contained in:
Joshua Harlow 2014-12-10 18:28:55 -08:00
parent 00b59ec276
commit ba0214a179
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class FiniteMachine(object):
and want to use copies to run with (the copies have
the current state that is different between machines).
"""
c = self.__class__(self.start_state)
c = type(self)(self.start_state)
if unfreeze and self.frozen:
c.frozen = False
else: