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):
2626 #: The server the file is hosted on
2727 self .server = bytes [4 :8 ].decode ("utf-8" ).strip ("\x00 " )
2828 #: 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 = ""
3030 # There is no SEA depot, use US instead
3131 if self .server == "SEA" :
3232 self .server = "US"
3333 elif self .server == "CN" :
34- self .urlEnd = ".cn"
34+ self .url_suffix = ".cn"
3535
3636 #: The unique content based hash of the file
3737 self .hash = binascii .b2a_hex (bytes [8 :]).decode ("utf8" )
@@ -42,7 +42,7 @@ def __init__(self, bytes):
4242 @property
4343 def url (self ):
4444 """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 )
4646
4747 def __hash__ (self ):
4848 return hash (self .url )
You can’t perform that action at this time.
0 commit comments