mirror of
https://github.com/OlafvdSpek/ctemplate.git
synced 2025-09-28 19:05:49 +08:00
Python 3 support
This commit is contained in:
parent
ce1b8fe617
commit
4b7e6c52dc
|
@ -210,7 +210,7 @@ class FSMConfig(object):
|
||||||
|
|
||||||
self.sm['state'] = self.AddState
|
self.sm['state'] = self.AddState
|
||||||
self.sm['condition'] = self.AddCondition
|
self.sm['condition'] = self.AddCondition
|
||||||
execfile(filename, self.sm)
|
exec(open(filename).read(), self.sm)
|
||||||
self.name = self.sm['name']
|
self.name = self.sm['name']
|
||||||
if not self.name.isalnum():
|
if not self.name.isalnum():
|
||||||
raise Exception("State machine name must consist of only alphanumeric"
|
raise Exception("State machine name must consist of only alphanumeric"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008, Google Inc.
|
# Copyright (c) 2008, Google Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user