Page MenuHomeSolus

Update python-rope to 0.17.0 and remove python2 support
ClosedPublic

Authored by algent on Fri, Jun 26, 7:35 PM.

Details

Summary

spyder is deprecated. Python2 support no longer needed.

Changelog:

  • Use context manager for open()
  • Don’t use UserDict (!!!) and collections.MutableMapping.
  • assertEquals has been deprecated for long time (-> assertEqual)
  • Remove weird escpaing of s character, which is the syntax error these days.
  • Fix pattern for matching short strings.
  • Work with deprecated types and using aliased ones.
  • Don't use underscored _ast, but use ast instead.
  • Direct import from collections is getting deprecated.
  • Use .is_alive method instead of a deprecated .isAlive in threading.Thread.
  • Fix simple typo: sitaution -> situation
  • Two more assertEquals happened.
  • Python 3.8 support

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan

Run some python scripts in spyder3

Diff Detail

Repository
R3706 python-rope
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Fri, Jun 26, 7:35 PM
algent requested review of this revision.Fri, Jun 26, 7:35 PM
JoshStrobl accepted this revision.Wed, Jul 8, 3:42 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Wed, Jul 8, 3:42 PM
This revision was automatically updated to reflect the committed changes.