"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/flask/helpers.py" between
flask-1.1.1.tar.gz and flask-1.1.2.tar.gz

About: Flask is a lightweight Python WSGI web application framework.

helpers.py  (flask-1.1.1):helpers.py  (flask-1.1.2)
skipping to change at line 983 skipping to change at line 983
self.cli = AppGroup() self.cli = AppGroup()
@property @property
def static_folder(self): def static_folder(self):
"""The absolute path to the configured static folder.""" """The absolute path to the configured static folder."""
if self._static_folder is not None: if self._static_folder is not None:
return os.path.join(self.root_path, self._static_folder) return os.path.join(self.root_path, self._static_folder)
@static_folder.setter @static_folder.setter
def static_folder(self, value): def static_folder(self, value):
if value is not None:
value = value.rstrip("/\\")
self._static_folder = value self._static_folder = value
@property @property
def static_url_path(self): def static_url_path(self):
"""The URL prefix that the static route will be accessible from. """The URL prefix that the static route will be accessible from.
If it was not configured during init, it is derived from If it was not configured during init, it is derived from
:attr:`static_folder`. :attr:`static_folder`.
""" """
if self._static_url_path is not None: if self._static_url_path is not None:
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)