comparison pytouhou/resource/loader.py @ 590:e15672733c93

Switch to Python 3.x instead of 2.7.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Sep 2014 17:14:24 +0200
parents 6b76c9ba3975
children d1f0bb0b7a17
comparison
equal deleted inserted replaced
589:0768122da817 590:e15672733c93
58 return open(os.path.join(self.path, str(name)), 'rb') 58 return open(os.path.join(self.path, str(name)), 'rb')
59 59
60 60
61 61
62 class ArchiveDescription(object): 62 class ArchiveDescription(object):
63 _formats = {'PBG3': PBG3} 63 _formats = {b'PBG3': PBG3}
64 64
65 def __init__(self, path, format_class, file_list=None): 65 def __init__(self, path, format_class, file_list=None):
66 self.path = path 66 self.path = path
67 self.format_class = format_class 67 self.format_class = format_class
68 self.file_list = file_list or [] 68 self.file_list = file_list or []