module Sass::Files
def try_to_read_sassc(filename, compiled_filename, sha)
def try_to_read_sassc(filename, compiled_filename, sha) return unless File.readable?(compiled_filename) File.open(compiled_filename, "rb") do |f| return unless f.readline("\n").strip == Sass::VERSION return unless f.readline("\n").strip == sha return Marshal.load(f.read) end rescue EOFError, TypeError, ArgumentError => e Haml::Util.haml_warn "Warning. Error encountered while reading cache #{compiled_filename}: #{e}" end