File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def __init__(self, bytes):
26
26
#: The server the file is hosted on
27
27
self .server = bytes [4 :8 ].decode ("utf-8" ).strip ("\x00 " )
28
28
#: Used to make it possible to load maps from CN. This isn't needed for any other region and so is blank by default.
29
- self .urlEnd = ""
29
+ self .url_suffix = ""
30
30
# There is no SEA depot, use US instead
31
31
if self .server == "SEA" :
32
32
self .server = "US"
33
33
elif self .server == "CN" :
34
- self .urlEnd = ".cn"
34
+ self .url_suffix = ".cn"
35
35
36
36
#: The unique content based hash of the file
37
37
self .hash = binascii .b2a_hex (bytes [8 :]).decode ("utf8" )
@@ -42,7 +42,7 @@ def __init__(self, bytes):
42
42
@property
43
43
def url (self ):
44
44
"""Returns url of the depot file."""
45
- return self .url_template .format (self .server , self .urlEnd , self .hash , self .type )
45
+ return self .url_template .format (self .server , self .url_suffix , self .hash , self .type )
46
46
47
47
def __hash__ (self ):
48
48
return hash (self .url )
You can’t perform that action at this time.
0 commit comments