Skip to content

Commit 70851a4

Browse files
committed
get rid of all use of the six module now that we are py3-only
1 parent bdfe5a6 commit 70851a4

File tree

10 files changed

+3
-18
lines changed

10 files changed

+3
-18
lines changed

effect/_dispatcher.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import attr
66

7-
from six.moves import filter
8-
97

108
@attr.s
119
class TypeDispatcher(object):

effect/_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Tools for dealing with Effects synchronously.
55
"""
66

7-
import six
87
import sys
98

109
from ._base import perform

effect/io.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from __future__ import print_function
88
import attr
9-
from six.moves import input
109

1110
from . import sync_performer, TypeDispatcher
1211

@@ -32,8 +31,7 @@ def perform_display_print(dispatcher, intent):
3231
@sync_performer
3332
def perform_get_input_raw_input(dispatcher, intent):
3433
"""
35-
Perform a :obj:`Prompt` intent by using ``raw_input`` (or ``input`` on
36-
Python 3).
34+
Perform a :obj:`Prompt` intent by using ``input``.
3735
"""
3836
return input(intent.prompt)
3937

effect/retry.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Retrying effects."""
22

3-
import six
4-
53
from functools import partial
64

75

effect/test_do.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
from py.test import raises as raises
55
from py.test import mark
66

7-
import six
8-
97
from . import (
108
ComposedDispatcher, Constant, Effect, Error, TypeDispatcher,
119
base_dispatcher, sync_perform, sync_performer)
@@ -170,7 +168,6 @@ def f():
170168
perf(eff)
171169

172170

173-
@mark.skipif(not six.PY3, reason="Testing a Py3-specific feature")
174171
def test_py3_return():
175172
"""The `return x` syntax in Py3 sets the result of the Effect to `x`."""
176173
from effect._test_do_py3 import py3_generator_with_return

effect/test_intents.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from functools import partial
44

5-
import six
6-
75
from testtools import TestCase
86
from testtools.matchers import Equals, MatchesListwise
97

effect/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def test_perform_display_print(capsys):
1313
def test_perform_get_input_raw_input(monkeypatch):
1414
"""The stdio dispatcher has a performer that reads input."""
1515
monkeypatch.setattr(
16-
'effect.io.input',
16+
'builtins.input',
1717
lambda p: 'my name' if p == '> ' else 'boo')
1818
assert sync_perform(stdio_dispatcher, Effect(Prompt('> '))) == 'my name'

effect/test_parallel_performers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import attr
44

5-
import six
6-
75
from testtools.matchers import MatchesStructure, Equals
86

97
from . import Effect, raise_

effect/testing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ._sync import NotSynchronousError, sync_perform, sync_performer
1818
from ._intents import Constant, Error, Func, ParallelEffects, base_dispatcher
1919

20-
import six
2120

2221
__all__ = [
2322
'perform_sequence',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
'Programming Language :: Python :: 3',
1515
],
1616
packages=['effect'],
17-
install_requires=['six', 'attrs'],
17+
install_requires=['attrs'],
1818
)

0 commit comments

Comments
 (0)