-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
RotatingFileHandler has a terminator property #1952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
stdlib/2and3/logging/handlers.pyi
Outdated
@@ -40,6 +41,7 @@ if sys.version_info >= (3,): | |||
|
|||
if sys.version_info >= (3,): | |||
class RotatingFileHandler(BaseRotatingHandler): | |||
terminator = ... # type: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant with BaseRotatingHandler, is it not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping, could you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, sorry for the delay.
stdlib/2and3/logging/handlers.pyi
Outdated
@@ -40,6 +41,7 @@ if sys.version_info >= (3,): | |||
|
|||
if sys.version_info >= (3,): | |||
class RotatingFileHandler(BaseRotatingHandler): | |||
terminator = ... # type: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping, could you remove this?
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.
In python3
RotatingFileHandler
is a subclass ofBaseRotatingHandler
which is a subclass ofFileHandler
which is a subclass ofStreamHandler
which has aterminator
property but I'm getting a"RotatingFileHandler" has no attribute "terminator"
error on my code.