Mercurial > skaapsteker
diff 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 |
line wrap: on
line diff
--- a/skaapsteker/level.py Mon Apr 11 08:57:24 2011 +0200 +++ b/skaapsteker/level.py Mon Apr 11 23:54:56 2011 +0200 @@ -1,4 +1,7 @@ -import json +try: + import json +except ImportError: + import simplejson as json from pygame import Rect, Surface, Color, mixer from pygame.sprite import LayeredUpdates