WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

imapclient.fixed_offset.FixedOffset cannot be unpickled #388

@freddrake

Description

@freddrake

With a pickled imapclient.fixed_offset.FixedOffset timezone with an offset of datetime.timedelta(0), unpickling raises an exception:

TypeError: __init__() missing 1 required positional argument: 'minutes'

I can work around this by adapting the timestamps returned for INTERNALDATE to use datetime.timezone instances instead of FixedOffset instances, but this shouldn't be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions