Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More comments and docstrings.

  • Loading branch information...
commit 7e913da56ba381ea0150adf356105cf8b562048d 1 parent bd30276
@SimonSapin authored
Showing with 6 additions and 3 deletions.
  1. +5 −2 flaskext/frozen/__init__.py
  2. +1 −1  setup.cfg
View
7 flaskext/frozen/__init__.py
@@ -82,16 +82,19 @@ def freeze(self):
# Don't build the same URL more than once
continue
seen_urls.add(url)
- built_files.add(self._build_one(url))
+ new_filename = self._build_one(url)
+ built_files.add(new_filename)
+ # Remove files from the previous build that are not here anymore.
for extra_file in previous_files - built_files:
os.remove(extra_file)
parent = os.path.dirname(extra_file)
if not os.listdir(parent):
- # now empty, remove
+ # The directory is now empty, remove it.
os.removedirs(parent)
return seen_urls
def _urls(self):
+ """Run all generators and yield URLs relative to the app root."""
base_url = self.app.config['FREEZER_BASE_URL']
script_name = urlparse.urlsplit(base_url).path.rstrip('/')
# A request context is required to use url_for
View
2  setup.cfg
@@ -3,6 +3,6 @@ source-dir = docs
build-dir = docs/_build
#all_files = 1
-[upload_sphinx]
+[upload_sphinx] # Sphinx-PyPI-upload
upload-dir = docs/_build/html
Please sign in to comment.
Something went wrong with that request. Please try again.