RotatingFileHandler has a terminator property (#1952)

In python3 `RotatingFileHandler` is a subclass of `BaseRotatingHandler` which is a subclass of `FileHandler` which is a subclass of `StreamHandler` which as a `terminator` property but I'm getting a `"RotatingFileHandler" has no attribute "terminator"` error on my code.
This commit is contained in:
João Santos
2018-03-25 17:11:01 +02:00
committed by Jelle Zijlstra
parent 4da20cb8b7
commit afeecb478b

View File

@@ -29,6 +29,7 @@ class WatchedFileHandler(Handler):
if sys.version_info >= (3,):
class BaseRotatingHandler(FileHandler):
terminator = ... # type: str
namer = ... # type: Optional[Callable[[str], str]]
rotator = ... # type: Optional[Callable[[str, str], None]]
def __init__(self, filename: str, mode: str,