Skip to content

Commit 63e934c

Browse files
a-detistelangston-barrett
authored andcommitted
remove dependency on 'six' transitional library
1 parent 9e7b723 commit 63e934c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ variable-naming-style=snake_case
5252

5353
[VARIABLES]
5454

55-
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
55+
redefining-builtins-modules=builtins,io

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Do not change the variable name. It's parsed by doc/conf.py script.
1010
version = '0.1.8'
1111

12-
requires = ['Sphinx >= 1.2', 'six']
12+
requires = ['Sphinx >= 1.2']
1313

1414

1515
def readme():

sphinxcontrib/autoprogram.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212

1313
# pylint: disable=protected-access,missing-docstring
1414
import argparse
15+
import builtins
1516
import collections
1617
import inspect
1718
import os
1819
import re
1920
import sys
21+
from functools import reduce
2022
from typing import Any, Dict, Iterable, List, Optional, Tuple
2123
import unittest
2224
from unittest import mock
@@ -25,8 +27,6 @@
2527
from docutils.parsers.rst import Directive
2628
from docutils.parsers.rst.directives import unchanged
2729
from docutils.statemachine import StringList, ViewList
28-
from six import exec_
29-
from six.moves import builtins, reduce
3030
from sphinx.domains import std
3131
from sphinx.util.nodes import nested_parse_with_titles
3232

@@ -154,7 +154,7 @@ def import_object(import_name: str):
154154
with open(f[0]) as fobj:
155155
codestring = fobj.read()
156156
foo = imp.new_module("foo")
157-
exec_(codestring, foo.__dict__)
157+
exec(codestring, foo.__dict__)
158158

159159
sys.modules["foo"] = foo
160160
mod = __import__("foo")

0 commit comments

Comments
 (0)