Repository navigation
Python 37+ initial migration - #522
Conversation
7259f7a to
0e55fea
Compare
|
rebased over test fixes PR |
8a3307e to
2e872d4
Compare
| @@ -1,19 +1,17 @@ | |||
| language: python | |||
| dist: bionic | |||
| #dist: bionic | |||
There was a problem hiding this comment.
use actual default (BTW better to sunset Travis)
There was a problem hiding this comment.
Looks like never completed file, syntax is incorrect
2e872d4 to
70c12c8
Compare
| # def move_cursor_to_coords(self, (maxcol,), col, row): | ||
| # assert row == 0 | ||
| # self.cursor_x = col | ||
| # return True |
There was a problem hiding this comment.
commenting out manual examples?
There was a problem hiding this comment.
Problem, that it's part of class copy-paste without class declaration -> this code causes parsing error
There was a problem hiding this comment.
Can't the manual use line ranges from examples? We could put a class above to avoid the parsing error instead of turning the code into comments
There was a problem hiding this comment.
Made fake class
|
Added my comments. Some good changes here but mostly code reformatting. |
Addressed all |
b7fff1f to
28cbbc0
Compare
| return 256 | ||
| if self._value & (_BG_TRUE_COLOR | _FG_TRUE_COLOR): | ||
| return 2**24 | ||
| if self._value & (_BG_BASIC_COLOR | _BG_BASIC_COLOR): |
| def move_cursor_to_coords(self, size, col, row): | ||
| assert row == 0 | ||
| self.cursor_x = col | ||
| return True |
There was a problem hiding this comment.
looks like in docs/manual/widgets.rst where wcur2.py is referenced we can add a :lines: 7- to skip the first 6 lines of this file in the docs https://devopstutodoc.readthedocs.io/en/stable/documentation/doc_generators/sphinx/rest_sphinx/code/literalinclude/literalinclude.html#lines-xxx
|
Since some of these changes affect the docs, try regenerating the docs to see if any unintended changes appear |
CI related: Update `tox.ini` and `.travis.yml` to run python3 only tests Python 3.11 tests is commented-out on travis until urwid#517 is not merged Manual changes: * `setup.py`: classifiers, remove python2 compatibility code * `docs/manual/wcur2.py`: looks like file was never completed, syntax is invalid * `urwid.compat`: removed `ord2`, `bytes3`, `text_type`, `xrange` and `text_types` Automatic changes (no manual editing, AST validated equality: * removed `u` prefix from all strings: not allowed in modern python code * `bytes()` -> `b''` * `== None` -> `is None` * subclassing of `object` * `super(<Class>`, self>)` ->`super()` * `from __future__ import ...` python3 compatibility imports * `set(<Iterable[Hashable]>)` -> `{<Hashable>}` * partial f-strings conversion * (`IOError`, `select.error`, `socket.error`) -> `OSError`
* use native `super()` instead of `self.__super`
* automatically sort imports
most IDE's will recognize it and annotate during new code usage call with "warnings as errors" mode will help to refactor other users
* replace homepage address in all files * remove outdated comments in compat.py * make wcur2.py correct python code. For example subclass * replace `self.__super` by `super()` in examples * fix asyncio_socket_server.py: magic with `asyncio` became wrong
…s.update_wrapper`
* `wcur2` include in docs * warning on `signals.Signals.emit`
28cbbc0 to
09a80a7
Compare
|
@penguinolog I don't have any other comments |
|
Merging |
Checklist
masterorpython-dual-supportbranchtoxsuccessfully in local environmentRelated #394