Skip to content

Conversation

@bekhzod91
Copy link
Contributor

@bekhzod91 bekhzod91 commented May 29, 2017

Closes #5162.

Add case for check user auth
Lint fix

valid_inputs = {
'2001-01-01 13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
'2001-01-01T13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
'2001-01-01T13:00Z': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be an erronous deletion.

Copy link
Contributor Author

@bekhzod91 bekhzod91 May 30, 2017

Choose a reason for hiding this comment

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

If i'm not misstict this is duplicated key

valid_inputs = {
          '2001-01-01 13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),		       
          '2001-01-01T13:00': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
 -        '2001-01-01T13:00Z': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc),
	   # Django 1.4 does not support timezone string parsing.
          '2001-01-01T13:00Z': datetime.datetime(2001, 1, 1, 13, 00, tzinfo=utc)
 }

In last attribute same key and value. I'm not sure about old version interpreter but new version interpreter remove first duplicated attributes


return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)


Copy link
Contributor

Choose a reason for hiding this comment

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

Let's drop these from the pull request.
If they're absolutely required because there's a newer version of the linter, then let's tackle them in a seperate pull request.

@audiolion
Copy link

References #5162

@lovelydinosaur lovelydinosaur added this to the 3.6.4 Release milestone Jul 10, 2017
@lovelydinosaur lovelydinosaur merged commit c7e2bad into encode:master Jul 10, 2017
@lovelydinosaur
Copy link
Contributor

Thanks @myrubapa, @audiolion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API documentation templates do not check for user authentication

4 participants