remove _os_alt_seps

This commit is contained in:
David Lord 2021-04-15 23:07:41 -07:00
parent 85b430a366
commit ec27677f95
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -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