File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 59
59
60
60
61
61
class PYOA_Graphics :
62
- # pylint: disable=too-many-instance-attributes
63
62
"""A choose your own adventure game framework."""
64
63
65
64
def __init__ (self ) -> None :
@@ -183,9 +182,7 @@ def load_game(self, game_directory: str) -> None:
183
182
)
184
183
self ._gamefilename = game_directory + "/cyoa.json"
185
184
try :
186
- with open ( # pylint: disable=unspecified-encoding
187
- self ._gamefilename
188
- ) as game_file :
185
+ with open (self ._gamefilename ) as game_file :
189
186
self ._game = json .load (game_file )
190
187
except OSError as err :
191
188
raise OSError ("Could not open game file " + self ._gamefilename ) from err
@@ -367,7 +364,7 @@ def play_sound(
367
364
print ("Playing sound" , filename )
368
365
self ._display .refresh (target_frames_per_second = 60 )
369
366
try :
370
- self ._wavfile = open (filename , "rb" ) # pylint: disable=consider-using-with
367
+ self ._wavfile = open (filename , "rb" )
371
368
except OSError as err :
372
369
raise OSError ("Could not locate sound file" , filename ) from err
373
370
You can’t perform that action at this time.
0 commit comments