Skip to content

AttributeError: 'module' object has no attribute 'inf' #60

Closed
@rqx110

Description

@rqx110

Python 2.7.18

after upgrade to latest version v0.9.10,

import json5
import codecs

config = {"foo": 'bar'}
with codecs.open('config1.json', 'w', encoding='utf-8') as f:
    json5.dump(config, f, indent=4, quote_keys=True, trailing_commas=False, ensure_ascii=False)

an error occurred as title

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions