"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/flask/cli.py" between
flask-1.1.1.tar.gz and flask-1.1.2.tar.gz

About: Flask is a lightweight Python WSGI web application framework.

cli.py  (flask-1.1.1):cli.py  (flask-1.1.2)
skipping to change at line 940 skipping to change at line 940
{prefix}{cmd} FLASK_APP=hello.py {prefix}{cmd} FLASK_APP=hello.py
{prefix}{cmd} FLASK_ENV=development {prefix}{cmd} FLASK_ENV=development
{prefix}flask run {prefix}flask run
""".format( """.format(
cmd="export" if os.name == "posix" else "set", cmd="export" if os.name == "posix" else "set",
prefix="$ " if os.name == "posix" else "> ", prefix="$ " if os.name == "posix" else "> ",
) )
) )
def main(as_module=False): def main(as_module=False):
cli.main(prog_name="python -m flask" if as_module else None) # TODO omit sys.argv once https://github.com/pallets/click/issues/536 is fix
cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else No
if __name__ == "__main__": if __name__ == "__main__":
main(as_module=True) main(as_module=True)
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)