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 six dependency #2083

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/standalone_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import gunicorn.app.base

from gunicorn.six import iteritems
from six import iteritems


def number_of_workers():
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.

version_info = (19, 9, 0)
version_info = (19, 10, 0)
__version__ = ".".join([str(v) for v in version_info])
SERVER_SOFTWARE = "gunicorn/%s" % __version__
4 changes: 2 additions & 2 deletions gunicorn/_compat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

from gunicorn import six
import six

PY26 = (sys.version_info[:2] == (2, 6))
PY33 = (sys.version_info >= (3, 3))
Expand Down Expand Up @@ -261,7 +261,7 @@ def urlsplit(url, scheme='', allow_fragments=True):
return v

else:
from gunicorn.six.moves.urllib.parse import urlsplit
from six.moves.urllib.parse import urlsplit


import inspect
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from gunicorn import _compat
from gunicorn.errors import ConfigError
from gunicorn.reloader import reloader_engines
from gunicorn import six
import six
from gunicorn import util

KNOWN_SETTINGS = []
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/glogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import traceback

from gunicorn import util
from gunicorn.six import PY3, string_types
from six import PY3, string_types


# syslog facility codes
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/body.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from gunicorn.http.errors import (NoMoreData, ChunkMissingTerminator,
InvalidChunkSize)
from gunicorn import six
import six


class ChunkedReader(object):
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
LimitRequestLine, LimitRequestHeaders)
from gunicorn.http.errors import InvalidProxyLine, ForbiddenProxyRequest
from gunicorn.http.errors import InvalidSchemeHeaders
from gunicorn.six import BytesIO, string_types
from six import BytesIO, string_types
from gunicorn.util import split_request_uri

MAX_REQUEST_LINE = 8190
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/unreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import os

from gunicorn import six
import six

# Classes that can undo reading data from
# a given type of data source.
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/http/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from gunicorn._compat import unquote_to_wsgi_str
from gunicorn.http.message import HEADER_RE
from gunicorn.http.errors import InvalidHeader, InvalidHeaderName
from gunicorn.six import string_types, binary_type, reraise
from six import string_types, binary_type, reraise
from gunicorn import SERVER_SOFTWARE
import gunicorn.util as util

Expand Down
2 changes: 1 addition & 1 deletion gunicorn/instrument/statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from re import sub

from gunicorn.glogging import Logger
from gunicorn import six
import six

# Instrumentation constants
METRIC_VAR = "metric"
Expand Down
2 changes: 1 addition & 1 deletion gunicorn/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import sys

from gunicorn._compat import wrap_error, InterruptedError
from gunicorn import six
import six


# generic events, that must be mapped to implementation-specific ones
Expand Down
Loading