提交 dd944604 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

bug fix

上级 89f41a7a
......@@ -40,8 +40,11 @@ except:
print('Could not connect to http://www.ldeo.columbia.edu/~gcmt/projects/CMT/catalog/NEW_QUICK/qcmt.ndk')
html = str(response.read())
find_re = re.compile(r'[A-Z]+\s\d+/\d+/\d+\s.+?\\n',re.DOTALL)
find_re.findall(html)
version = sys.version_info.major
if version == 3:
find_re = re.compile(r'[A-Z]+\s\d+/\d+/\d+\s.+?\\n',re.DOTALL)
else:
find_re = re.compile(r'[A-Z]+\s\d+/\d+/\d+\s.+?[\n]',re.DOTALL)
fid_old = open(inlog,'r')
all_old_log = fid_old.readlines()
old_log = all_old_log[-1]
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册