-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Drop support for Python 2.6. #2051
Conversation
I'm
|
Closes #1607.
@dhermes Should be addressed in subsequent commits. |
'gcloud._helpers._total_seconds' worked around the fact that 'datetime.timedelta.total_seconds' was not added until Python 2.7.
Amended to fix the lint issue. |
@@ -36,8 +36,7 @@ class GCloudError(Exception): | |||
""" | |||
|
|||
def __init__(self, message, errors=()): | |||
super(GCloudError, self).__init__() | |||
# suppress deprecation warning under 2.6.x | |||
super(GCloudError, self).__init__(message) | |||
self.message = message |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Only question left: do we want to add a warning on import? |
I think not on import: maybe on installation. @daspecster, @jgeewax WDYT? |
OK let's just merge (LGTM) and file an issue to follow up / decide if we should warn on either import or installation. |
See also #2056. |
Closes #1607.