mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
move monkey patching
This commit is contained in:
+8
-4
@@ -1,12 +1,16 @@
|
|||||||
##!/usr/bin/env python
|
##!/usr/bin/env python
|
||||||
|
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
from flask import Flask
|
from gevent import monkey
|
||||||
from werkzeug.serving import WSGIRequestHandler
|
|
||||||
|
|
||||||
from app import create_app, socketio # noqa: F401
|
monkey.patch_all() # this has to be called before other imports or monkey patching doesn't happen
|
||||||
|
|
||||||
|
|
||||||
|
from flask import Flask # noqa
|
||||||
|
from werkzeug.serving import WSGIRequestHandler # noqa
|
||||||
|
|
||||||
|
from app import create_app, socketio # noqa
|
||||||
|
|
||||||
WSGIRequestHandler.version_string = lambda self: "SecureServer"
|
WSGIRequestHandler.version_string = lambda self: "SecureServer"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
from gevent import monkey
|
|
||||||
|
|
||||||
monkey.patch_all() # this has to be called before other imports or monkey patching doesn't happen
|
|
||||||
|
|
||||||
import os # noqa
|
import os # noqa
|
||||||
import socket # noqa
|
import socket # noqa
|
||||||
import sys # noqa
|
import sys # noqa
|
||||||
|
|||||||
Reference in New Issue
Block a user