Skip to content

Commit

Permalink
fixed missing cgi.escape() when running under python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mirouse committed Jan 27, 2020
1 parent bc24ab7 commit e72d304
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions houseStatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
# import IPython
import jinja2
import os
import cgi
from flask import render_template, request
import argparse

if sys.version_info >= (3, 8):
import html as cgi
else:
import cgi

Error = colored.fg("red") + colored.attr("bold")
Info = colored.fg("green") + colored.attr("bold")
MightBeImportant = colored.fg("blue") + colored.attr("bold")
Expand All @@ -46,4 +50,4 @@
class dynamicHookOption(Enum):
only_new = "new"
only_existing = "existing"
both = "all"
both = "all"

0 comments on commit e72d304

Please sign in to comment.