summaryrefslogtreecommitdiff
path: root/scss/legacy.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2014-08-27 14:56:41 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2014-08-27 14:56:41 -0700
commit11e2b44c0e7992db0e339f4dd53fe93a16710802 (patch)
tree26be7ac1067fae42bfa5eff3f37a08d267e47c71 /scss/legacy.py
parent6a8efa934d9a91c0916ecbc6659f275e25858bc6 (diff)
downloadpyscss-11e2b44c0e7992db0e339f4dd53fe93a16710802.tar.gz
Introduce an Extension class, finally. Making a stab at #130.
All the core functions have been moved into a core Extension, and Namespace has been beefed up a little bit so declaring functions is easy.
Diffstat (limited to 'scss/legacy.py')
-rw-r--r--scss/legacy.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/scss/legacy.py b/scss/legacy.py
index 095d2ce..12e225d 100644
--- a/scss/legacy.py
+++ b/scss/legacy.py
@@ -7,7 +7,6 @@ import six
from scss.compiler import Compiler
import scss.config as config
-from scss.functions import ALL_BUILTINS_LIBRARY
from scss.expression import Calculator
from scss.namespace import Namespace
from scss.scss_meta import (
@@ -49,7 +48,7 @@ class Scss(object):
def __init__(
self, scss_vars=None, scss_opts=None, scss_files=None,
super_selector='', live_errors=False,
- library=ALL_BUILTINS_LIBRARY, func_registry=None,
+ library=None,
search_paths=None):
self.super_selector = super_selector
@@ -69,9 +68,7 @@ class Scss(object):
self._scss_opts = scss_opts or {}
self._scss_files = scss_files
- # NOTE: func_registry is backwards-compatibility for only one user and
- # has never existed in a real release
- self._library = func_registry or library
+ self._library = library
self._search_paths = search_paths
# If true, swallow compile errors and embed them in the output instead
@@ -92,7 +89,6 @@ class Scss(object):
root_namespace = Namespace(
variables=self.scss_vars,
- functions=self._library,
)
# Figure out search paths. Fall back from provided explicitly to