Skip to content

Commit 59966c9

Browse files
issackellyGraylinKim
authored andcommitted
Fix 'get_url' is a staticmethod and not a classmethod
1 parent e9eff85 commit 59966c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def __init__(self, map_file, filename=None, gateway=None, map_hash=None, **optio
378378
self.archive = MPQArchive(StringIO(self.file))
379379
self.minimap = self.archive.read_file('Minimap.tga')
380380

381-
@classmethod
381+
@staticmethod
382382
def get_url(gateway, map_hash):
383383
if gateway and map_hash:
384384
return Map.url_template.format(gateway, map_hash)
@@ -397,4 +397,4 @@ def read_game_strings(self):
397397
elif parts[0] == 'DocInfo/Author':
398398
self.author = parts[1]
399399
elif parts[0] == 'DocInfo/DescLong':
400-
self.description = parts[1]
400+
self.description = parts[1]

0 commit comments

Comments
 (0)