Skip to content

Commit 80d1214

Browse files
committed
update remaining lib2to3 references to fissix
these were missed because sometimes lib2to3 is referred to as 2to3
1 parent 1e253ab commit 80d1214

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This library is a very thin wrapper around `fissix
1010
to make Python 2 code more modern with the intention of eventually
1111
porting it over to Python 3.
1212

13-
The ``python -m modernize`` command works like `2to3
14-
<https://docs.python.org/3/library/2to3.html>`_. Here's how you'd rewrite a
13+
The ``python -m modernize`` command works like `fissix
14+
<https://github.com/jreese/fissix>`_. Here's how you'd rewrite a
1515
single file::
1616

1717
python -m modernize -w example.py

docs/fixers.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Some fixers rely on the latest release of the `six project`_ to work
1818
If you wish to turn off these fixers to avoid an external dependency on ``six``,
1919
then use the ``--no-six`` flag.
2020

21-
Fixers use the API defined by 2to3. For details of how this works, and how to
22-
implement your own fixers, see `Extending 2to3 with your own fixers, at
23-
python3porting.com <http://python3porting.com/fixers.html>`_.
21+
Fixers use the API defined by fissix. For details of how this works, and how to
22+
implement your own fixers, see `Creating a fixer, at
23+
python3porting.com <http://python3porting.com/fixers.html#creating-a-fixer>`_.
2424
``python -m modernize`` will try to load fixers whose full dotted-path is specified
2525
as a ``-f`` argument, but will fail if they are not found. By default, fixers
2626
will not be found in the current directory; use ``--fixers-here`` to make
@@ -229,7 +229,7 @@ version of ``six`` is installed.
229229
Wrapping the use in a call to ``list()`` is done when necessary.
230230
231231
232-
``2to3`` fixers
232+
``fissix`` fixers
233233
+++++++++++++++
234234

235235
Some `fixers from fissix <https://docs.python.org/3/library/2to3.html#fixers>`_

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This library is a very thin wrapper around ``fissix`` to utilize it
1818
to make Python 2 code more modern with the intention of eventually
1919
porting it over to Python 3.
2020

21-
The ``python -m modernize`` command works like `2to3
22-
<https://docs.python.org/3/library/2to3.html>`_. Here's how you'd rewrite a
21+
The ``python -m modernize`` command works like `fissix
22+
<https://github.com/jreese/fissix>`_. Here's how you'd rewrite a
2323
single file::
2424

2525
python -m modernize -w example.py

libmodernize/fixes/fix_dict_six.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ def transform(self, node, results):
4848

4949
def in_special_context(self, node, isiter):
5050
# Redefined from parent class to make "for x in d.items()" count as
51-
# in special context; 2to3 only counts for loops as special context
51+
# in special context; fissix only counts for loops as special context
5252
# for the iter* methods.
5353
return super().in_special_context(node, True)

libmodernize/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def main(args=None):
7272
action="store",
7373
default=1,
7474
type="int",
75-
help="Run 2to3 concurrently.",
75+
help="Run fissix concurrently.",
7676
)
7777
parser.add_option(
7878
"-x",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author_email = [email protected]
55
maintainer = PyCQA
66
maintainer_email = [email protected]
77
url = https://github.com/PyCQA/modernize
8-
description = A hack on top of fissix (2to3 fork) for modernizing code for hybrid codebases.
8+
description = A hack on top of fissix (lib2to3 fork) for modernizing code for hybrid codebases.
99
long_description = file: README.rst
1010
classifiers =
1111
License :: OSI Approved :: BSD License

0 commit comments

Comments
 (0)