Skip to content

Commit

Permalink
Correct an apidoc comment and simplify files() method
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Feb 22, 2016
1 parent 7bd2172 commit 9063247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions h/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, assets_base_url, bundle_config_path, manifest_path):
:param bundle_config_path: YAML file defining named collections of
asset bundles.
:param manifest_path: JSON file mapping file paths in the bundle config
file to cache-busted URL.
file to cache-busted URLs.
"""
self.assets_base_url = assets_base_url
self.manifest = _CachedFile(manifest_path, json.load)
Expand All @@ -79,7 +79,7 @@ def __init__(self, assets_base_url, bundle_config_path, manifest_path):
def files(self, bundle):
"""Return the file paths for all files in a bundle."""
bundles = self.bundles.load()
return [path for path in bundles[bundle]]
return bundles[bundle]

def urls(self, bundle):
"""
Expand Down

0 comments on commit 9063247

Please sign in to comment.