Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a uninitialized value exception.

  • Loading branch information...
commit 147de1f3c8ed21ba7698f6f2a1e1ee8fb0f48080 1 parent c8e0504
@andyao1 andyao1 authored committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 django/src/depender/core.py
View
5 django/src/depender/core.py
@@ -151,13 +151,16 @@ def strip_blocks(self):
//</1.2compat>
"""
+ print_content = False
if self.exclude_blocks and len(self.exclude_blocks) > 0:
for package_name, package in self.packages.items():
for c, fd in package.components.iteritems():
for block in self.exclude_blocks:
JS_BLOCKS = re.compile(r'/[/*]\s*<' + block + '>.+?<\/' + block + '>(?:\s*\*/)?(?s)', re.MULTILINE)
fd.content = JS_BLOCKS.sub('/* compat block ' + block + ' removed */', fd.content)
- print fd.content
+ print_content = True
+ if print_content:
+ print fd.content
def get(self, id):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.