Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sg3-141-592 committed Jun 3, 2023
1 parent 8139a15 commit 7d3969e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/urllib3/request.py
Expand Up @@ -4,11 +4,10 @@
import warnings

from .filepost import encode_multipart_formdata
from .packages.six.moves.urllib.parse import urlencode

from .packages import six
from .packages.six.moves.urllib.parse import urlencode

__all__ = ["request"]
__all__ = ["RequestMethods"]


class RequestMethods(object):
Expand Down Expand Up @@ -175,7 +174,7 @@ def request_encode_body(
return self.urlopen(method, url, **extra_kw)


if six.PY3:
if not six.PY2:

class RequestModule(object):
def __call__(self, *args, **kwargs):
Expand Down
6 changes: 5 additions & 1 deletion test/test_request.py
Expand Up @@ -3,7 +3,11 @@

import urllib3

@pytest.mark.skipif(six.PY2, reason="This behaviour isn't added when running urllib3 in Python 2",)

@pytest.mark.skipif(
six.PY2,
reason="This behaviour isn't added when running urllib3 in Python 2",
)
class TestRequestImport(object):
def test_request_import_warning(self):
"""Ensure an appropriate error is raised to the user
Expand Down

0 comments on commit 7d3969e

Please sign in to comment.