This commit is contained in:
Miroslav Stampar
2016-03-10 14:48:05 +01:00
parent c50849707f
commit 3307918389
3 changed files with 8 additions and 3 deletions

View File

@@ -2917,7 +2917,7 @@ def showHttpErrorCodes():
msg += "could mean that some kind of protection is involved (e.g. WAF)"
logger.debug(msg)
def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace", buffering=1):
def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace", buffering=1): # "buffering=1" means line buffered (Reference: http://stackoverflow.com/a/3168436)
"""
Returns file handle of a given filename
"""