Skip to content

Commit

Permalink
remove dependency on 'six' transitional library
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste authored and langston-barrett committed Jan 9, 2024
1 parent 9e7b723 commit 63e934c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ variable-naming-style=snake_case

[VARIABLES]

redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
redefining-builtins-modules=builtins,io
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Do not change the variable name. It's parsed by doc/conf.py script.
version = '0.1.8'

requires = ['Sphinx >= 1.2', 'six']
requires = ['Sphinx >= 1.2']


def readme():
Expand Down
6 changes: 3 additions & 3 deletions sphinxcontrib/autoprogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@

# pylint: disable=protected-access,missing-docstring
import argparse
import builtins
import collections
import inspect
import os
import re
import sys
from functools import reduce
from typing import Any, Dict, Iterable, List, Optional, Tuple
import unittest
from unittest import mock
Expand All @@ -25,8 +27,6 @@
from docutils.parsers.rst import Directive
from docutils.parsers.rst.directives import unchanged
from docutils.statemachine import StringList, ViewList
from six import exec_
from six.moves import builtins, reduce
from sphinx.domains import std
from sphinx.util.nodes import nested_parse_with_titles

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

sys.modules["foo"] = foo
mod = __import__("foo")
Expand Down

0 comments on commit 63e934c

Please sign in to comment.