Skip to content
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

Adjust code style according to PEP8 and add OS Independent classifier #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MartinThoma
Copy link

No description provided.

@@ -67,7 +67,8 @@ def _gmtime(timestamp):
try:
return time.gmtime(timestamp)
except OSError:
dt = datetime.datetime(1970, 1, 1) + datetime.timedelta(seconds=timestamp)
dt = (datetime.datetime(1970, 1, 1) +
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parenthesis neither related to pep8 nor improve redability

def test_relative_weeks_3():
assert Chronyk("in blurgh weeks and 2 days").relativestring() == "in 2 days"
assert (Chronyk("in blurgh weeks and 2 days").relativestring()
== "in 2 days")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this new style look really ugly

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