lint fixes (#338)

This commit is contained in:
Chad Smith 2020-07-12 17:36:53 -07:00 committed by GitHub
parent d60dc57274
commit cdef290403
4 changed files with 11 additions and 15 deletions

View file

@ -15,7 +15,7 @@ RUN set -x \
&& apt-key add Release.key \ && apt-key add Release.key \
&& add-apt-repository 'https://dl.winehq.org/wine-builds/ubuntu/' \ && add-apt-repository 'https://dl.winehq.org/wine-builds/ubuntu/' \
&& apt-get update -qy \ && 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 \ && apt-get clean \
&& wget -nv https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ && wget -nv https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x winetricks \ && chmod +x winetricks \
@ -36,9 +36,9 @@ ENV PYPI_INDEX_URL=https://pypi.python.org/simple
RUN set -x \ RUN set -x \
&& winetricks win7 \ && winetricks win7 \
&& for msifile in `echo core dev exe lib path pip tcltk tools`; do \ && 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"; \ wget -nv "https://www.python.org/ftp/python/$PYTHON_VERSION/amd64/${msifile}.msi"; \
wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python36; \ wine msiexec /i "${msifile}.msi" /qb TARGETDIR=C:/Python36; \
rm ${msifile}.msi; \ rm ${msifile}.msi; \
done \ done \
&& cd /wine/drive_c/Python36 \ && cd /wine/drive_c/Python36 \
&& echo 'wine '\''C:\Python36\python.exe'\'' "$@"' > /usr/bin/python \ && echo 'wine '\''C:\Python36\python.exe'\'' "$@"' > /usr/bin/python \

View file

@ -50,10 +50,7 @@ class Registers extends React.Component {
} }
static cache_register_names(names) { static cache_register_names(names) {
// filter out non-empty names // filter out non-empty names
store.set( store.set("register_names", names.filter(name => name));
"register_names",
names.filter(name => name)
);
} }
static clear_register_name_cache() { static clear_register_name_cache() {
store.set("register_names", []); store.set("register_names", []);

View file

@ -160,10 +160,7 @@ const process_gdb_response = function(response_array) {
if ("register-names" in r.payload) { if ("register-names" in r.payload) {
let names = r.payload["register-names"]; let names = r.payload["register-names"];
// filter out empty names // filter out empty names
store.set( store.set("register_names", names.filter(name => name !== ""));
"register_names",
names.filter(name => name !== "")
);
} }
if ("register-values" in r.payload) { if ("register-values" in r.payload) {
store.set("previous_register_values", store.get("current_register_values")); 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") { if (r.payload["signal-name"] !== "SIGINT") {
Actions.add_console_entries( 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 constants.console_entry_type.GDBGUI_OUTPUT
); );
Actions.add_console_entries( Actions.add_console_entries(

View file

@ -12,8 +12,8 @@ REQUIRED = [
"Flask-Compress>=1.4.0, <2.0", # to compress flask responses "Flask-Compress>=1.4.0, <2.0", # to compress flask responses
"Flask-SocketIO>=2.9, <3.0", # websocket server "Flask-SocketIO>=2.9, <3.0", # websocket server
"gevent>=1.2.2, <2.0", # websocket handling "gevent>=1.2.2, <2.0", # websocket handling
"gevent-websocket>=0.10.1, <0.11", # also websocket "gevent-websocket>=0.10.1, <0.11", # also websocket
"eventlet>=0.25.0, <0.26". # also websocket "eventlet>=0.25.0, <0.26", # also websocket
"pygdbmi>=0.9.0.0, <1.0", # parse gdb output "pygdbmi>=0.9.0.0, <1.0", # parse gdb output
"Pygments>=2.2.0, <3.0", # syntax highlighting "Pygments>=2.2.0, <3.0", # syntax highlighting
] ]