From ec27677f956859fb91c87c4ec7e2766873e67bc0 Mon Sep 17 00:00:00 2001 From: David Lord Date: Thu, 15 Apr 2021 23:07:41 -0700 Subject: [PATCH] remove _os_alt_seps --- src/flask/helpers.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/flask/helpers.py b/src/flask/helpers.py index b6639316..1a96e744 100644 --- a/src/flask/helpers.py +++ b/src/flask/helpers.py @@ -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