Mercurial > touhou
comparison pytouhou/formats/hint.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 | 6c0cb3eee33e |
children |
comparison
equal
deleted
inserted
replaced
614:2cf518129725 | 615:d1f0bb0b7a17 |
---|---|
25 def __init__(self, number): | 25 def __init__(self, number): |
26 list.__init__(self) | 26 list.__init__(self) |
27 self.number = number | 27 self.number = number |
28 | 28 |
29 | 29 |
30 class Hint(object): | 30 class Hint: |
31 _fields = {'Stage': int, | 31 _fields = {'Stage': int, |
32 'Tips': None, | 32 'Tips': None, |
33 'Remain': int, | 33 'Remain': int, |
34 'Text': lambda v: v[1:-1], | 34 'Text': lambda v: v[1:-1], |
35 'Pos': _read_n_int, | 35 'Pos': _read_n_int, |