comparison skaapsteker/level.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 4de4f94c326d
children 851c8726696c
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 pygame import Rect, Surface, Color, mixer 6 from pygame import Rect, Surface, Color, mixer
4 from pygame.sprite import LayeredUpdates 7 from pygame.sprite import LayeredUpdates
5 8
6 from . import data 9 from . import data