mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-04-28 16:04:35 +02:00
adding in the parsing class DataMaze the funciton transform_data
This commit is contained in:
@@ -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