comparison skaapsteker/dialogue.py @ 612:a91b2e4400a5

Fallback to using simplejson if json does not exist (this appears to be all that is needed to add Python2.5 compatibility).
author Simon Cross <hodgestar@gmail.com>
date Mon, 11 Apr 2011 23:54:56 +0200
parents e648501c2eea
children 0675f390653c
comparison
equal deleted inserted replaced
611:7d49f698eff7 612:a91b2e4400a5
1 import json 1 try:
2 import json
3 except ImportError:
4 import simplejson as json
2 5
3 from . import data 6 from . import data
4 from .engine import OpenDialog, AddSpriteEvent, ChangeScene 7 from .engine import OpenDialog, AddSpriteEvent, ChangeScene
5 8
6 9