Changeset 612:a91b2e4400a5


Ignore:
Timestamp:
04/11/11 21:54:56 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Fallback to using simplejson if json does not exist (this appears to be all that is needed to add Python2.5 compatibility).

Location:
skaapsteker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/dialogue.py

    r557 r612  
    1 import json
     1try:
     2    import json
     3except ImportError:
     4    import simplejson as json
    25
    36from . import data
  • skaapsteker/gamestate.py

    r558 r612  
     1try:
     2    import json
     3except:
     4    import simplejson as json
     5
    16import os
    2 import json
    37
    48from . import data
  • skaapsteker/level.py

    r522 r612  
    1 import json
     1try:
     2    import json
     3except ImportError:
     4    import simplejson as json
    25
    36from pygame import Rect, Surface, Color, mixer
Note: See TracChangeset for help on using the changeset viewer.