Skip to content

Commit

Permalink
Update file_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mytechnotalent authored Feb 11, 2022
1 parent f45382d commit fbaa393
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Part_6_Classes/0014_escape_room/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def clear_inventory_file():
try:
with open('inventory', 'w') as file:
file.write('')

return True
except OSError:
return False
Expand All @@ -36,7 +35,6 @@ def write_inventory_file(inventory_item):
try:
with open('inventory', 'w') as file:
file.write(inventory_item)

return True
except OSError:
return False
Expand All @@ -51,7 +49,6 @@ def read_inventory_file(self):
try:
with open('inventory', 'r') as file:
self.inventory = file.read()

return self.inventory
except OSError:
return False

0 comments on commit fbaa393

Please sign in to comment.