Questions tagged [lib2to3]

3 questions
2
votes
1 answer

Python EBNF Syntax to Match a Decorator

I have a very large project where I need to move some modules from bar to foo.bar, and subsequently update all functions calls to reflect new location. This works fine against function calls, but I am having problems building a pattern to match…
Meitham
  • 9,178
  • 5
  • 34
  • 45
0
votes
0 answers

How to debug the error message from a yapf formatting task?

I recently inherited a code base and am in the process of using yapf (and indirectly lib2to3) to format the code base. When I run the formatter I get the following output: Traceback (most recent call last): File…
S. Braun
  • 59
  • 5
0
votes
0 answers

Undo changes of '2to3' library

I had some python code in my SSH Project Folder which I had to convert from Python 2.7 to Python 3.*. Hence I installed the library 2to3. However, before running the command 2to3 . -w, I navigated to the ROOT directory which contained all the Python…
Vishnukk
  • 524
  • 2
  • 11
  • 27