Replace map with for loop
map in Python 2 performed the loop iteration immediately and returned a list whereas Python 3 returns an iterator for lazy evaluation. If you don't care about the result the iteration never happens!
Showing
- qt/applications/workbench/workbench/app/mainwindow.py 2 additions, 1 deletionqt/applications/workbench/workbench/app/mainwindow.py
- qt/applications/workbench/workbench/plotting/figuremanager.py 2 additions, 1 deletion...pplications/workbench/workbench/plotting/figuremanager.py
- qt/applications/workbench/workbench/plotting/functions.py 2 additions, 2 deletionsqt/applications/workbench/workbench/plotting/functions.py
Loading
Please register or sign in to comment