Thanks to visit codestin.com
Credit goes to github.com

Skip to content

InstanceResource.load fails to parse rfc2822 dates for unicode strings #161

Closed
@rpkilby

Description

@rpkilby

The InstanceResource.load method only parses dates correctly for python 3 environments. For python 2, they remain in the rfc2822 string format.

if key.startswith("date_") and isinstance(entries[key], str):

should be

if key.startswith("date_") and isinstance(entries[key], six.string_types):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions