Skip to content

Commit

Permalink
Fix register display and Python 3.11 compatibility (#463)
Browse files Browse the repository at this point in the history
* fix register update condition

* update dependencies for Python 3.11 compatibility

* fix tests

---------

Co-authored-by: Chad Smith <[email protected]>
  • Loading branch information
gregbaker and cs01 authored Oct 18, 2023
1 parent 93cb2e9 commit eb59589
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
max-line-length = 88
ignore = E501, E203, W503, E402, E231 # line length, whitespace before ':', line break before binary operator, module level import not at top of file
ignore = E501, E203, W503, E402, E231
# line length, whitespace before ':', line break before binary operator, module level import not at top of file
5 changes: 2 additions & 3 deletions gdbgui/src/js/Registers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ class Registers extends React.Component<{}, State> {
let cmds: any = [];
if (
[constants.inferior_states.paused, constants.inferior_states.running].indexOf(
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'boolean' is not assignable to pa... Remove this comment to see the full error message
store.get("inferior_program") > -1
)
store.get("inferior_program")
) == -1
) {
return cmds;
}
Expand Down
38 changes: 21 additions & 17 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
bidict==0.21.2
bidict==0.22.1
# via python-socketio
blinker==1.6.2
# via flask
brotli==1.0.9
# via flask-compress
click==8.0.1
click==8.1.3
# via flask
dnspython==2.2.1
dnspython==2.3.0
# via eventlet
eventlet==0.33.0
eventlet==0.33.3
# via -r requirements.in
flask==2.0.1
flask==2.3.2
# via
# flask-compress
# flask-socketio
flask-compress==1.10.1
# via -r requirements.in
flask-socketio==5.1.1
flask-socketio==5.1.2
# via -r requirements.in
greenlet==1.1.2
greenlet==2.0.2
# via eventlet
itsdangerous==2.0.1
itsdangerous==2.1.2
# via flask
jinja2==3.0.1
jinja2==3.1.2
# via flask
markupsafe==2.0.1
# via jinja2
markupsafe==2.1.2
# via
# jinja2
# werkzeug
pygdbmi==0.10.0.2
# via -r requirements.in
pygments==2.10.0
pygments==2.15.1
# via -r requirements.in
python-engineio==4.2.1
python-engineio==4.4.1
# via python-socketio
python-socketio==5.4.0
python-socketio==5.8.0
# via flask-socketio
six==1.16.0
# via eventlet
werkzeug==2.0.1
werkzeug==2.3.4
# via flask

0 comments on commit eb59589

Please sign in to comment.