diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-26 14:09:34 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-07-26 14:09:34 -0700 |
commit | bfd105152ed90bf4260a349be4c1a7717eb01911 (patch) | |
tree | 7ae3682612eccd295c1d91fa9866b894d31ee530 | |
parent | 2f4f9ac7041232e5a74d267706ab6a8c4a982f7f (diff) | |
download | pyscss-bfd105152ed90bf4260a349be4c1a7717eb01911.tar.gz |
Fix the file caching in @import.
-rw-r--r-- | scss/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/__init__.py b/scss/__init__.py index 31be561..3b3028f 100644 --- a/scss/__init__.py +++ b/scss/__init__.py @@ -764,7 +764,6 @@ class Scss(object): return full_filename = None - i_codestr = None names = block.argument.split(',') for name in names: name = dequote(name.strip()) @@ -778,8 +777,9 @@ class Scss(object): filename = os.path.basename(name) dirname = os.path.dirname(name) + source_file = None try: - i_codestr = self.source_file_index[name] + source_file = self.source_file_index[name] except KeyError: i_codestr = None @@ -824,7 +824,7 @@ class Scss(object): source_file = SourceFile(full_filename, i_codestr, parent_dir=os.path.dirname(full_filename)) self.source_files.append(source_file) self.source_file_index[name] = source_file - if i_codestr is None: + if source_file is None: load_paths = load_paths and "\nLoad paths:\n\t%s" % "\n\t".join(load_paths) or '' unsupported = unsupported and "\nPossible matches (for unsupported file format SASS):\n\t%s" % "\n\t".join(unsupported) or '' log.warn("File to import not found or unreadable: '%s' (%s)%s%s", filename, rule.file_and_line, load_paths, unsupported) |