Skip to content

Commit afeecb4

Browse files
jmcsJelleZijlstra
authored andcommitted
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.
1 parent 4da20cb commit afeecb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/2and3/logging/handlers.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class WatchedFileHandler(Handler):
2929

3030
if sys.version_info >= (3,):
3131
class BaseRotatingHandler(FileHandler):
32+
terminator = ... # type: str
3233
namer = ... # type: Optional[Callable[[str], str]]
3334
rotator = ... # type: Optional[Callable[[str, str], None]]
3435
def __init__(self, filename: str, mode: str,

0 commit comments

Comments
 (0)