Permalink
Browse files

Clean up NBT modules.

Simplify the load and save interfaces. Replace the (data, data_cursor) tuples with a load_ctx object. Add an option to skip decoding tag names to unicode, improving speed and memory use if tag names are assumed to be ASCII. Make nbt.py and _nbt.pyx more consistent with each other. Use a similar method to import from _nbt.pyx as is seen in the standard library. Move pretty-print code to its own file and share it between implementations.
  • Loading branch information...
1 parent 87b97ab commit a83821cd1340c777a09e25b77f2a2f50840ccf6a @codewarrior1 codewarrior1 committed Oct 11, 2012
Showing with 879 additions and 790 deletions.
  1. +1 −0 .gitignore
  2. +457 −334 _nbt.pyx
  3. +9 −16 infiniteworld.py
  4. +2 −66 nbt.py
  5. +27 −0 nbt_util.py
  6. +345 −357 pynbt.py
  7. +1 −1 run_tests.sh
  8. +1 −6 schematic.py
  9. +7 −10 test/nbt_test.py
  10. +29 −0 test/time_nbt.py
  11. BIN testfiles/TileTicks.nbt
View
@@ -22,3 +22,4 @@ _nbt.so
# The "standard" virtualenv directory.
ENV
+_nbt.pyd
Oops, something went wrong.

0 comments on commit a83821c

Please sign in to comment.