From cdef29040367fb8d2dde445a0c4413e3be4be202 Mon Sep 17 00:00:00 2001 From: Chad Smith Date: Sun, 12 Jul 2020 17:36:53 -0700 Subject: [PATCH] lint fixes (#338) --- docker/windows/Dockerfile | 8 ++++---- gdbgui/src/js/Registers.jsx | 5 +---- gdbgui/src/js/process_gdb_response.js | 9 ++++----- setup.py | 4 ++-- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/docker/windows/Dockerfile b/docker/windows/Dockerfile index e053c4f..a7eb442 100644 --- a/docker/windows/Dockerfile +++ b/docker/windows/Dockerfile @@ -15,7 +15,7 @@ RUN set -x \ && apt-key add Release.key \ && add-apt-repository 'https://dl.winehq.org/wine-builds/ubuntu/' \ && apt-get update -qy \ - && apt-get install --no-install-recommends -qfy $WINE_VERSION winbind cabextract \ + && apt-get install --allow-unauthenticated --no-install-recommends -qfy $WINE_VERSION winbind cabextract \ && apt-get clean \ && wget -nv https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ && chmod +x winetricks \ @@ -36,9 +36,9 @@ ENV PYPI_INDEX_URL=https://pypi.python.org/simple RUN set -x \ && winetricks win7 \ && for msifile in `echo core dev exe lib path pip tcltk tools`; do \ - wget -nv "https://www.python.org/ftp/python/$PYTHON_VERSION/amd64/${msifile}.msi"; \ - wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python36; \ - rm ${msifile}.msi; \ + wget -nv "https://www.python.org/ftp/python/$PYTHON_VERSION/amd64/${msifile}.msi"; \ + wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python36; \ + rm ${msifile}.msi; \ done \ && cd /wine/drive_c/Python36 \ && echo 'wine '\''C:\Python36\python.exe'\'' "$@"' > /usr/bin/python \ diff --git a/gdbgui/src/js/Registers.jsx b/gdbgui/src/js/Registers.jsx index e08fa27..18abba6 100644 --- a/gdbgui/src/js/Registers.jsx +++ b/gdbgui/src/js/Registers.jsx @@ -50,10 +50,7 @@ class Registers extends React.Component { } static cache_register_names(names) { // filter out non-empty names - store.set( - "register_names", - names.filter(name => name) - ); + store.set("register_names", names.filter(name => name)); } static clear_register_name_cache() { store.set("register_names", []); diff --git a/gdbgui/src/js/process_gdb_response.js b/gdbgui/src/js/process_gdb_response.js index 902587e..c20c872 100644 --- a/gdbgui/src/js/process_gdb_response.js +++ b/gdbgui/src/js/process_gdb_response.js @@ -160,10 +160,7 @@ const process_gdb_response = function(response_array) { if ("register-names" in r.payload) { let names = r.payload["register-names"]; // filter out empty names - store.set( - "register_names", - names.filter(name => name !== "") - ); + store.set("register_names", names.filter(name => name !== "")); } if ("register-values" in r.payload) { store.set("previous_register_values", store.get("current_register_values")); @@ -300,7 +297,9 @@ const process_gdb_response = function(response_array) { if (r.payload["signal-name"] !== "SIGINT") { Actions.add_console_entries( - `gdbgui noticed a signal was received (${r.payload["signal-meaning"]}, ${r.payload["signal-name"]}).`, + `gdbgui noticed a signal was received (${r.payload["signal-meaning"]}, ${ + r.payload["signal-name"] + }).`, constants.console_entry_type.GDBGUI_OUTPUT ); Actions.add_console_entries( diff --git a/setup.py b/setup.py index 89e1e70..3f2f1ee 100644 --- a/setup.py +++ b/setup.py @@ -12,8 +12,8 @@ REQUIRED = [ "Flask-Compress>=1.4.0, <2.0", # to compress flask responses "Flask-SocketIO>=2.9, <3.0", # websocket server "gevent>=1.2.2, <2.0", # websocket handling - "gevent-websocket>=0.10.1, <0.11", # also websocket - "eventlet>=0.25.0, <0.26". # also websocket + "gevent-websocket>=0.10.1, <0.11", # also websocket + "eventlet>=0.25.0, <0.26", # also websocket "pygdbmi>=0.9.0.0, <1.0", # parse gdb output "Pygments>=2.2.0, <3.0", # syntax highlighting ]