Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
cs01 committed Oct 4, 2022
1 parent 50dce49 commit 45436e9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pyxtermjs/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

logging.getLogger("werkzeug").setLevel(logging.ERROR)

__version__ = "0.5.0.0"
__version__ = "0.5.0.1"

app = Flask(__name__, template_folder=".", static_folder=".", static_url_path="")
app.config["SECRET_KEY"] = "secret!"
Expand All @@ -38,7 +38,9 @@ def read_and_forward_pty_output():
timeout_sec = 0
(data_ready, _, _) = select.select([app.config["fd"]], [], [], timeout_sec)
if data_ready:
output = os.read(app.config["fd"], max_read_bytes).decode(errors='ignore')
output = os.read(app.config["fd"], max_read_bytes).decode(
errors="ignore"
)
socketio.emit("pty-output", {"output": output}, namespace="/pty")


Expand Down Expand Up @@ -129,7 +131,12 @@ def main():
app.config["cmd"] = [args.command] + shlex.split(args.cmd_args)
green = "\033[92m"
end = "\033[0m"
log_format = green + "pyxtermjs > " + end + "%(levelname)s (%(funcName)s:%(lineno)s) %(message)s"
log_format = (
green
+ "pyxtermjs > "
+ end
+ "%(levelname)s (%(funcName)s:%(lineno)s) %(message)s"
)
logging.basicConfig(
format=log_format,
stream=sys.stdout,
Expand Down

0 comments on commit 45436e9

Please sign in to comment.