diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-27 16:41:00 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-27 16:41:00 -0700 |
commit | 3f2cec97a5420bb81be811aecbab12f2ff6584bd (patch) | |
tree | f5d035585fb85374be91e91db2b4eb4454628ace | |
parent | 71455cd63ba9e79018260294ff4ac1fa97de6b02 (diff) | |
download | pyscss-3f2cec97a5420bb81be811aecbab12f2ff6584bd.tar.gz |
Remove compiler's reliance on config.VERBOSITY.
-rw-r--r-- | scss/expression.py | 6 | ||||
-rw-r--r-- | scss/tool.py | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/scss/expression.py b/scss/expression.py index 0091052..18ada87 100644 --- a/scss/expression.py +++ b/scss/expression.py @@ -88,8 +88,7 @@ class Calculator(object): if config.FATAL_UNDEFINED: raise SyntaxError("Undefined variable: '%s'." % n) else: - if config.VERBOSITY > 1: - log.error("Undefined variable '%s'", n, extra={'stack': True}) + log.error("Undefined variable '%s'", n, extra={'stack': True}) return n else: if v: @@ -380,8 +379,7 @@ class Variable(Expression): if config.FATAL_UNDEFINED: raise SyntaxError("Undefined variable: '%s'." % self.name) else: - if config.VERBOSITY > 1: - log.error("Undefined variable '%s'", self.name, extra={'stack': True}) + log.error("Undefined variable '%s'", self.name, extra={'stack': True}) return Undefined() else: if isinstance(value, six.string_types): diff --git a/scss/tool.py b/scss/tool.py index 94f388b..53832eb 100644 --- a/scss/tool.py +++ b/scss/tool.py @@ -51,7 +51,7 @@ def main(): parser.add_option("-s", "--suffix", metavar="STRING", help="If using watch, a suffix added to the output filename (i.e. filename.STRING.css)") parser.add_option("--time", action="store_true", - help="Display compliation times") + help="Ignored, will be removed in 2.0") parser.add_option("--debug-info", action="store_true", help="Turns on scss's debugging information") parser.add_option("--no-debug-info", action="store_false", @@ -98,10 +98,6 @@ def main(): options, args = parser.parse_args() # General runtime configuration - config.VERBOSITY = 0 - if options.time: - config.VERBOSITY = 2 - if options.static_root is not None: config.STATIC_ROOT = options.static_root if options.assets_root is not None: |