提交 bcbdccea 编写于 作者: W wuzewu

fix typo

上级 ee097042
...@@ -30,7 +30,7 @@ class CSVFileParser(object): ...@@ -30,7 +30,7 @@ class CSVFileParser(object):
pass pass
def parse(self, csv_file): def parse(self, csv_file):
with codecs.open(txt_file, "r", sys.stdin.encoding) as file: with codecs.open(csv_file, "r", sys.stdin.encoding) as file:
content = file.read() content = file.read()
content = content.split('\n') content = content.split('\n')
self.title = content[0].split(',') self.title = content[0].split(',')
...@@ -57,7 +57,8 @@ class YAMLFileParser(object): ...@@ -57,7 +57,8 @@ class YAMLFileParser(object):
pass pass
def parse(self, yaml_file): def parse(self, yaml_file):
with codecs.open(txt_file, "r", sys.stdin.encoding) as file: with codecs.open(yaml_file, "r", sys.stdin.encoding) as file:
print("come to here")
content = file.read() content = file.read()
return yaml.load(content, Loader=yaml.BaseLoader) return yaml.load(content, Loader=yaml.BaseLoader)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册