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

remove duplicated import and fix it in code #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

remove duplicated import and fix it in code #3

wants to merge 1 commit into from

Conversation

doomedraven
Copy link

No description provided.

@doomedraven
Copy link
Author

hello you have this in code, so that fixes that and make it more py3 friendly without break py2 support

import cStringIO <----
import binascii
import textwrap
import re
import string
import hashlib
import json
if sys.version_info[0] >= 3:
    from io import StringIO
else:
    from cStringIO import StringIO  <----

Copy link

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

Thank you !
Tested on Python 3.11

The import should be replaced by from io import StringIO

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