Skip to content

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

Merged
merged 3 commits into from
Mar 25, 2018

Conversation

jmcs
Copy link
Contributor

@jmcs jmcs commented Mar 8, 2018

In python3 RotatingFileHandler is a subclass of BaseRotatingHandler which is a subclass of FileHandler which is a subclass of StreamHandler which has a terminator property but I'm getting a "RotatingFileHandler" has no attribute "terminator" error on my code.

jmcs added 2 commits March 8, 2018 09:44
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.
@@ -40,6 +41,7 @@ if sys.version_info >= (3,):

if sys.version_info >= (3,):
class RotatingFileHandler(BaseRotatingHandler):
terminator = ... # type: str
Copy link
Member

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?

Copy link
Member

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?

Copy link
Contributor Author

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.

@@ -40,6 +41,7 @@ if sys.version_info >= (3,):

if sys.version_info >= (3,):
class RotatingFileHandler(BaseRotatingHandler):
terminator = ... # type: str
Copy link
Member

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?

@JelleZijlstra JelleZijlstra merged commit afeecb4 into python:master Mar 25, 2018
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants