Spaces:
Sleeping
Sleeping
Update person.py
Browse files
person.py
CHANGED
|
@@ -18,7 +18,8 @@ class Person:
|
|
| 18 |
|
| 19 |
@staticmethod
|
| 20 |
def read_file(filename):
|
| 21 |
-
with resources.open_text("", filename) as f:
|
|
|
|
| 22 |
data = f.read().splitlines()
|
| 23 |
|
| 24 |
return data
|
|
|
|
| 18 |
|
| 19 |
@staticmethod
|
| 20 |
def read_file(filename):
|
| 21 |
+
#with resources.open_text("", filename) as f:
|
| 22 |
+
with open(filename, 'r') as f:
|
| 23 |
data = f.read().splitlines()
|
| 24 |
|
| 25 |
return data
|