mirror of https://github.com/pallets/flask.git
Merge pull request #4926 from pallets/docs-inheritance
python 2 style inheritance clean up from docs
This commit is contained in:
commit
55cdb420a0
|
|
@ -93,7 +93,7 @@ exist yet, it is dynamically created and remembered::
|
||||||
|
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
|
|
||||||
class SubdomainDispatcher(object):
|
class SubdomainDispatcher:
|
||||||
|
|
||||||
def __init__(self, domain, create_app):
|
def __init__(self, domain, create_app):
|
||||||
self.domain = domain
|
self.domain = domain
|
||||||
|
|
@ -148,7 +148,7 @@ request path up to the first slash::
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from werkzeug.wsgi import pop_path_info, peek_path_info
|
from werkzeug.wsgi import pop_path_info, peek_path_info
|
||||||
|
|
||||||
class PathDispatcher(object):
|
class PathDispatcher:
|
||||||
|
|
||||||
def __init__(self, default_app, create_app):
|
def __init__(self, default_app, create_app):
|
||||||
self.default_app = default_app
|
self.default_app = default_app
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue