Skip to content
Myr

Handle different sep across os

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Frost Ming · committed by Frost Ming · parent d4076cf · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:src/flask/helpers.py+3 added-1 removed
998 unmodified lines
999 return os.path.join(self.root_path, self._static_folder)10001001 @static_folder.setter1002 def static_folder(self, value):1003 if value is not None:1004 value = value.rstrip("/\\")1005 self._static_folder = value10061007 @property1008 def static_url_path(self):
5 unmodified lines
1014 if self._static_url_path is not None:1015 return self._static_url_path10161017 if self.static_folder is not None:1016 basename = os.path.basename(self.static_folder.rstrip("/"))1018 basename = os.path.basename(self.static_folder)1019 return ("/" + basename).rstrip("/")10201021 @static_url_path.setter1022 def static_url_path(self, value):
133 unmodified lines