mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-11-01 15:42:03 +01:00
adding in the parsing class DataMaze the funciton transform_data
This commit is contained in:
1 parent
2f5d200c0a
commit
6b90e5fce5
2 files changed
+15
-3
No files matched your search
@@ -3,9 +3,16 @@ class DataMaze:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def get_data(name_file: str):
|
||||
def get_data(name_file: str) -> str:
|
||||
data = ""
|
||||
try:
|
||||
with open(name_file, "r") as file:
|
||||
print(file)
|
||||
data = file.read()
|
||||
except FileNotFoundError:
|
||||
print("The file do not exist")
|
||||
finally:
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
def transform_data(data: str):
|
||||
pass
|
||||
Reference in new issue
Block a user