Skip to content

Commit 80ccca6

Browse files
author
Jordan Adler
committed
Remove guidance on recursively selecting only python files from a directory as shells are not portable
1 parent a13917a commit 80ccca6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/futurize_cheatsheet.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ The goal for this step is to modernize the Python 2 code without introducing any
3131
pip install future
3232

3333
**1b**. Run ``futurize --stage1 -w *.py subdir1/*.py subdir2/*.py``. Note that with
34-
recursive globbing in ``bash`` or ``zsh``, you can apply stage 1 to all Python
35-
source files recursively with::
34+
recursive globbing in ``bash`` or ``zsh``, you can apply stage 1 to all source files
35+
recursively with::
3636

37-
futurize --stage1 -w **/*.py
37+
futurize --stage1 -w .
3838

3939
**1c**. Commit all changes
4040

@@ -79,10 +79,9 @@ again with the help of the ``future`` package.
7979

8080
futurize --stage2 myfolder1/*.py myfolder2/*.py
8181

82-
Or, using recursive globbing with ``bash`` or ``zsh``, you can view the stage 2
83-
changes to all Python source files recursively with::
82+
You can view the stage 2 changes to all Python source files recursively with::
8483

85-
futurize --stage2 **/*.py
84+
futurize --stage2 .
8685

8786
To apply the changes, add the ``-w`` argument.
8887

0 commit comments

Comments
 (0)