mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2025-03-14 20:52:48 +00:00
Fix lint
This commit is contained in:
parent
0ac8437387
commit
fbd71d55ef
7 changed files with 9 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@ sass/scss
|
|||
build/
|
||||
.cache/
|
||||
.env*
|
||||
.pytest_cache
|
||||
|
|
2
.isort.cfg
Normal file
2
.isort.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[settings]
|
||||
multi_line_output=4
|
|
@ -1,8 +1,8 @@
|
|||
import sys
|
||||
import termios
|
||||
import tty
|
||||
from contextlib import contextmanager
|
||||
|
||||
import termios
|
||||
from butterfly.utils import ansi_colors as colors # noqa: F401
|
||||
|
||||
|
||||
|
@ -61,7 +61,7 @@ def geolocation():
|
|||
rv = sys.stdin.read(1)
|
||||
if rv != 'R':
|
||||
loc += rv
|
||||
except:
|
||||
except Exception:
|
||||
return
|
||||
finally:
|
||||
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
|
||||
|
|
|
@ -30,6 +30,7 @@ import tornado.options
|
|||
import tornado.process
|
||||
import tornado.web
|
||||
import tornado.websocket
|
||||
|
||||
from butterfly import Route, url, utils
|
||||
from butterfly.terminal import Terminal
|
||||
|
||||
|
|
2
butterfly/static/ext.min.js
vendored
2
butterfly/static/ext.min.js
vendored
File diff suppressed because one or more lines are too long
2
butterfly/static/main.min.js
vendored
2
butterfly/static/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -24,6 +24,7 @@ import signal
|
|||
import string
|
||||
import struct
|
||||
import sys
|
||||
import termios
|
||||
from logging import getLogger
|
||||
|
||||
import tornado.ioloop
|
||||
|
@ -32,7 +33,6 @@ import tornado.process
|
|||
import tornado.web
|
||||
import tornado.websocket
|
||||
|
||||
import termios
|
||||
from butterfly import __version__, utils
|
||||
|
||||
log = getLogger('butterfly')
|
||||
|
|
Loading…
Reference in a new issue