update readme.py

This commit is contained in:
Rohit Tanwar
2018-01-21 12:13:24 +05:30
parent 862327ceed
commit 3266885fc0
6 changed files with 145 additions and 104 deletions

View File

@ -6,7 +6,6 @@ files = os.listdir('snippets')
codeRe = "```\s*python([\s\S]*?)```"
for file in files:
someFile = open("snippets/" + file)
print(file)
fileData = someFile.read()
someFile.close()
originalCode = re.search(codeRe,fileData).group(0)