Mercurial > touhou
comparison pytouhou/formats/score.py @ 615:d1f0bb0b7a17
Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Mar 2015 21:40:51 +0100 |
parents | 70e2ed71b09c |
children |
comparison
equal
deleted
inserted
replaced
614:2cf518129725 | 615:d1f0bb0b7a17 |
---|---|
18 from io import BytesIO | 18 from io import BytesIO |
19 | 19 |
20 from pytouhou.formats import ChecksumError | 20 from pytouhou.formats import ChecksumError |
21 | 21 |
22 | 22 |
23 class TH6Score(object): | 23 class TH6Score: |
24 entry_types = { | 24 entry_types = { |
25 b'TH6K': (Struct('<I'), | 25 b'TH6K': (Struct('<I'), |
26 namedtuple('TH6K', ('unknown',))), | 26 namedtuple('TH6K', ('unknown',))), |
27 b'HSCR': (Struct('<IIBBB8sx'), | 27 b'HSCR': (Struct('<IIBBB8sx'), |
28 namedtuple('HSCR', ('unknown', 'score', 'character', | 28 namedtuple('HSCR', ('unknown', 'score', 'character', |