Skip to content

Commit ec1e944

Browse files
committed
Improves formatting
1 parent f9aba7e commit ec1e944

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

webpack_loader/loader.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_chunk_url(self, chunk_file):
6161
public_path = chunk_file.get('publicPath')
6262
if public_path:
6363
return public_path
64-
# Use os.path.normpath for Windows paths
64+
# Use os.path.normpath for Windows paths
6565
relpath = os.path.normpath(
6666
os.path.join(self.config['BUNDLE_DIR_NAME'], chunk_file['name'])
6767
)
@@ -91,8 +91,7 @@ def get_bundle(self, bundle_name):
9191
if assets.get('status') == 'done':
9292
chunks = assets['chunks'].get(bundle_name, None)
9393
if chunks is None:
94-
raise WebpackBundleLookupError(
95-
'Cannot resolve bundle {0}.'.format(bundle_name))
94+
raise WebpackBundleLookupError('Cannot resolve bundle {0}.'.format(bundle_name))
9695

9796
filtered_chunks = self.filter_chunks(chunks)
9897

webpack_loader/templatetags/webpack_loader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99

1010
@register.simple_tag
11-
def render_bundle(
12-
bundle_name, extension=None, config='DEFAULT', suffix='', attrs='', is_preload=False):
11+
def render_bundle(bundle_name, extension=None, config='DEFAULT', suffix='', attrs='', is_preload=False):
1312
tags = utils.get_as_tags(
1413
bundle_name, extension=extension, config=config,
1514
suffix=suffix, attrs=attrs, is_preload=is_preload

webpack_loader/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def get_files(bundle_name, extension=None, config='DEFAULT'):
4747
return list(_get_bundle(bundle_name, extension, config))
4848

4949

50-
def get_as_tags(
51-
bundle_name, extension=None, config='DEFAULT', suffix='', attrs='', is_preload=False):
50+
def get_as_tags(bundle_name, extension=None, config='DEFAULT', suffix='', attrs='', is_preload=False):
5251
'''
5352
Get a list of formatted <script> & <link> tags for the assets in the
5453
named bundle.

0 commit comments

Comments
 (0)