Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.48 KB

File metadata and controls

39 lines (20 loc) · 1.48 KB

How to Migrate

Step 1: Convert Print Statements to Function Calls

Use the codemod to convert print statements in Python 2 to function calls in Python 3.

👉 Run the Convert Print Statements to Function Calls Codemod

Step 2: Unicode to Str Conversion

Use the codemod to update Unicode string handling to be compatible with Python 3.

👉 Run the Unicode to Str Conversion Codemod

Step 3: Update Dictionary Iteration

Use the codemod to update dictionary iteration to use the view objects returned by dict.keys(), dict.values(), and dict.items() in Python 3.

👉 Run the Update Dictionary Iteration Codemod

Step 4: Modernize Exception Handling

Use the codemod to update exception handling syntax to be compatible with Python 3.

👉 Run the Modernize Exception Handling Codemod

Step 5: Update Iterators

Use the codemod to replace the next() method with __next__() in iterators to be compatible with Python 3.

👉 Run the Update Iterators Codemod


Need Help?

If you encounter issues or have specific edge cases not addressed by the codemods, reach out to the Codegen support team or visit the Codegen Documentation for detailed guidance.

Start your Python 3 migration today and enjoy the benefits of a cleaner, modern codebase!