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 unused lib #81

Merged
merged 1 commit into from Apr 8, 2020
Merged

Conversation

even-even
Copy link

This lib unused in code

Copy link
Owner

@jgonggrijp jgonggrijp 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 for pointing out the unused imports, @even-even. I found one mistake and one oversight, but I already fixed them for you in an upstream commit.

import re
import argparse
from functools import partial
import logging
import json
import sys
import pip
import subprocess
Copy link
Owner

Choose a reason for hiding this comment

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

subprocess is actually used. But you were probably testing on Python 3, which allows you to remove it here because subprocess is also imported in the PY3 branch on line 16. I removed the latter instead.

from packaging import version

PY3 = sys.version_info.major == 3
if PY3: # Python3 Imports
import urllib.request as urllib_request
Copy link
Owner

Choose a reason for hiding this comment

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

You were right to remove this, but you forgot to remove it in the Python 2 branch on line 29 as well. I already fixed that for you.

@jgonggrijp jgonggrijp merged commit c07c125 into jgonggrijp:develop Apr 8, 2020
@jgonggrijp
Copy link
Owner

See f107912 for the fixes.

@jgonggrijp jgonggrijp added this to the Next minor or patch release milestone Apr 8, 2020
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.

None yet

2 participants