NAME

2to3-3.3 – Python2 to Python3 converter  

SYNOPSIS

2to3 [optionsfile|dir …  

OPTIONS

-h, –help
show this help message and exit
-d, –doctests_only
Fix up doctests only
-f FIX, –fix=FIX
Each FIX specifies a transformation; default: all
-j PROCESSES, –processes=PROCESSES
Run 2to3 concurrently
-x NOFIX, –nofix=NOFIX
Prevent a transformation from being run
-l, –list-fixes
List available transformations
-p, –print-function
Modify the grammar so that print() is a function
-v, –verbose
More verbose logging
–no-diffs
Don’t show diffs of the refactoring
-w, –write
Write back modified files
-n, –nobackups
Don’t write backups for modified files

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.