Minor changes, responding to pull request comments

This commit is contained in:
Ned Batchelder
2015-08-24 14:57:03 -04:00
committed by David Baumgold
parent a8dd9ca99d
commit 5d64f9a80b
10 changed files with 41 additions and 18 deletions

View File

@@ -37,9 +37,9 @@ class Command(BaseCommand):
def process_one_file(self, source_file, dest_dir, theme_name):
"""Pre-process a .scss file to replace our markers with real code."""
with open(source_file) as fsource:
original_content = content = fsource.read()
original_content = fsource.read()
content = content.replace(
content = original_content.replace(
"//<THEME-OVERRIDE>",
"@import '{}';".format(theme_name),
)