Changeset 554:51bc11e3b693


Ignore:
Timestamp:
04/09/11 23:49:55 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Pretty-print save game JSON.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/gamestate.py

    r531 r554  
    8181                return
    8282        try:
    83             json.dump(self.data, open(self._game_file, "wb"))
     83            json.dump(self.data, open(self._game_file, "wb"), indent=4)
    8484        except:
    8585            print "Cannot create save game file."
Note: See TracChangeset for help on using the changeset viewer.