Skip to content

Remove guidance on recursively selecting only python files from a dir #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/futurize_cheatsheet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ The goal for this step is to modernize the Python 2 code without introducing any
pip install future

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

futurize --stage1 -w **/*.py
futurize --stage1 -w .

**1c**. Commit all changes

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

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

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

futurize --stage2 **/*.py
futurize --stage2 .

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

Expand Down