@@ -137,7 +137,7 @@ class ServerProperties(ServerFile):
137
137
VALUES_TYPE = dict
138
138
139
139
def __init__ (self , module ):
140
- super (self . __class__ , self ).__init__ (module )
140
+ super (ServerProperties , self ).__init__ (module )
141
141
self ._content_changed = False
142
142
self .newlines = []
143
143
properties = self .values .copy ()
@@ -182,7 +182,7 @@ class ACL(ServerFile):
182
182
A Minecraft ACL.
183
183
"""
184
184
def __init__ (self , module ):
185
- super (self . __class__ , self ).__init__ (module )
185
+ super (ACL , self ).__init__ (module )
186
186
self .acl = []
187
187
188
188
@property
@@ -214,7 +214,7 @@ class Banlist(ACL):
214
214
A generic Minecraft banlist.
215
215
"""
216
216
def __init__ (self , module , created = None , expires = None , reason = None ):
217
- super (self . __class__ , self ).__init__ (module )
217
+ super (Banlist , self ).__init__ (module )
218
218
self .created = created if created else dt .utcnow ()
219
219
self .expires = expires if expires else DEFAULT_BAN_EXPIRES
220
220
self .reason = reason if reason else DEFAULT_BAN_REASON
@@ -235,7 +235,7 @@ class BannedPlayers(Banlist):
235
235
The module "values" argument should be a list of usernames.
236
236
"""
237
237
def __init__ (self , module ):
238
- super (self . __class__ , self ).__init__ (module )
238
+ super (BannedPlayers , self ).__init__ (module )
239
239
uuids = get_uuids (self .values )
240
240
for username , u in uuids .items ():
241
241
entry = self .template .copy ()
@@ -251,7 +251,7 @@ class BannedIPs(Banlist):
251
251
The module "values" argument should be a list of IP addresses.
252
252
"""
253
253
def __init__ (self , module ):
254
- super (self . __class__ , self ).__init__ (module )
254
+ super (BannedIPs , self ).__init__ (module )
255
255
for ip in self .values :
256
256
entry = self .template .copy ()
257
257
entry ['ip' ] = ip
@@ -268,7 +268,7 @@ def __init__(self, module):
268
268
"""
269
269
Generate a Minecraft whitelist from a list of usernames.
270
270
"""
271
- super (self . __class__ , self ).__init__ (module )
271
+ super (Whitelist , self ).__init__ (module )
272
272
uuids = get_uuids (self .values )
273
273
for username , u in uuids .items ():
274
274
self .acl .append ({'name' : username , 'uuid' : u })
@@ -284,7 +284,7 @@ def __init__(self, module):
284
284
"""
285
285
Generate a Minecraft oplist from a list of usernames.
286
286
"""
287
- super (self . __class__ , self ).__init__ (module )
287
+ super (Oplist , self ).__init__ (module )
288
288
for entry in self .acl :
289
289
entry ['level' ] = MINECRAFT_OP_CODE
290
290
0 commit comments