Browse Source

Strip whitespace.

master
Ben Kurtovic 7 years ago
parent
commit
79866da842
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      copyvios/attribution.py

+ 1
- 1
copyvios/attribution.py View File

@@ -30,7 +30,7 @@ def get_attribution_info(site, page):

for template in page.parse().ifilter_templates():
if template.name.matches(templates):
name = unicode(template.name)
name = unicode(template.name).strip()
title = name if ":" in name else prefix + ":" + name
return name, site.get_page(title).url
return None

Loading…
Cancel
Save