forked from orbit-oss/flask
remove _os_alt_seps
This commit is contained in:
parent
85b430a366
commit
ec27677f95
1 changed files with 0 additions and 7 deletions
|
|
@ -18,13 +18,6 @@ from .globals import request
|
|||
from .globals import session
|
||||
from .signals import message_flashed
|
||||
|
||||
# what separators does this operating system provide that are not a slash?
|
||||
# this is used by the send_from_directory function to ensure that nobody is
|
||||
# able to access files from outside the filesystem.
|
||||
_os_alt_seps = list(
|
||||
sep for sep in [os.path.sep, os.path.altsep] if sep not in (None, "/")
|
||||
)
|
||||
|
||||
|
||||
def get_env():
|
||||
"""Get the environment the app is running in, indicated by the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue