Correct bug which required rewinding of file for subsequent reading. Introduced when moving to file name or file object handling for input file.

这个提交包含在:
Craig Warren
2017-02-23 15:20:20 +00:00
父节点 34d11c09f4
当前提交 f6fcfbcacf

查看文件

@@ -36,6 +36,9 @@ def process_python_include_code(inputfile, usernamespace):
# Strip out any newline characters and comments that must begin with double hashes
inputlines = [line.rstrip() for line in inputfile if(not line.startswith('##') and line.rstrip('\n'))]
# Rewind input file in preparation for any subsequent reading function
inputfile.seek(0)
# List to hold final processed commands
processedlines = []