Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 0dc9797

Browse files
committed
Change SASS to Sass
1 parent fce952f commit 0dc9797

File tree

11 files changed

+51
-51
lines changed

11 files changed

+51
-51
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Credit
107107
Hong Minhee wrote this Python binding of Libsass_.
108108

109109
Hampton Catlin and Aaron Leung wrote Libsass_, which is portable C/C++
110-
implementation of SASS_.
110+
implementation of Sass_.
111111

112-
Hampton Catlin originally designed SASS_ language and wrote the first
112+
Hampton Catlin originally designed Sass_ language and wrote the first
113113
reference implementation of it in Ruby.
114114

115115
The above three softwares are all distributed under `MIT license`_.

docs/changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Version 0.9.3
213213

214214
Released on December 03, 2015.
215215

216-
- Support "indented" SASS compilation [:issue:`41` by Alice Zoë Bevan–McGregor]
216+
- Support "indented" Sass compilation [:issue:`41` by Alice Zoë Bevan–McGregor]
217217
- Fix wheels on windows [:issue:`28` :issue:`49` by Anthony Sottile]
218218

219219
Version 0.9.2

docs/frameworks/flask.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Imagine the project contained in such directory layout:
2525
- :file:`css/`
2626
- :file:`templates/`
2727

28-
SASS/SCSS files will go inside :file:`myapp/static/sass/` directory.
28+
Sass/SCSS files will go inside :file:`myapp/static/sass/` directory.
2929
Compiled CSS files will go inside :file:`myapp/static/css/` directory.
3030
CSS files can be regenerated, so add :file:`myapp/static/css/` into your
3131
ignore list like :file:`.gitignore` or :file:`.hgignore`.
@@ -35,10 +35,10 @@ Defining manifest
3535
-----------------
3636

3737
The :mod:`sassutils` defines a concept named :dfn:`manifest`.
38-
Manifest is building settings of SASS/SCSS. It specifies some paths
39-
related to building SASS/SCSS:
38+
Manifest is building settings of Sass/SCSS. It specifies some paths
39+
related to building Sass/SCSS:
4040

41-
- The path of the directory which contains SASS/SCSS source files.
41+
- The path of the directory which contains Sass/SCSS source files.
4242
- The path of the directory compiled CSS files will go.
4343
- The path, is exposed to HTTP (through WSGI), of the directory that
4444
will contain compiled CSS files.
@@ -47,7 +47,7 @@ Every package may have their own manifest. Paths have to be relative
4747
to the path of the package.
4848

4949
For example, in the project the package name is :mod:`myapp`.
50-
The path of the package is :file:`myapp/`. The path of SASS/SCSS directory
50+
The path of the package is :file:`myapp/`. The path of Sass/SCSS directory
5151
is :file:`static/sass/` (relative to the package directory).
5252
The path of CSS directory is :file:`static/css/`.
5353
The exposed path is :file:`/static/css`.
@@ -62,7 +62,7 @@ As you can see the above, the set of manifests are represented in dictionary.
6262
Keys are packages names. Values are tuples of paths.
6363

6464

65-
Building SASS/SCSS for each request
65+
Building Sass/SCSS for each request
6666
-----------------------------------
6767

6868
.. seealso::
@@ -77,9 +77,9 @@ Building SASS/SCSS for each request
7777

7878
__ http://flask.pocoo.org/docs/quickstart/#hooking-in-wsgi-middlewares
7979

80-
In development, to manually build SASS/SCSS files for each change is
80+
In development, to manually build Sass/SCSS files for each change is
8181
so tiring. :class:`~sassutils.wsgi.SassMiddleware` makes the web
82-
application to automatically build SASS/SCSS files for each request.
82+
application to automatically build Sass/SCSS files for each request.
8383
It's a WSGI middleware, so it can be plugged into the web app written in
8484
Flask.
8585

@@ -113,7 +113,7 @@ function:
113113
All compiled filenames have trailing ``.css`` suffix.
114114

115115

116-
Building SASS/SCSS for each deployment
116+
Building Sass/SCSS for each deployment
117117
--------------------------------------
118118

119119
.. note::
@@ -129,7 +129,7 @@ If libsass has been installed in the :file:`site-packages` (for example,
129129
your virtualenv), :file:`setup.py` script also gets had new command
130130
provided by libsass: :class:`~sassutils.distutils.build_sass`.
131131
The command is aware of ``sass_manifests`` option of :file:`setup.py` and
132-
builds all SASS/SCSS sources according to the manifests.
132+
builds all Sass/SCSS sources according to the manifests.
133133

134134
Add these arguments to :file:`setup.py` script::
135135

@@ -149,7 +149,7 @@ install libsass first.
149149

150150
The ``sass_manifests`` specifies the manifests for libsass.
151151

152-
Now :program:`setup.py build_sass` will compile all SASS/SCSS files
152+
Now :program:`setup.py build_sass` will compile all Sass/SCSS files
153153
in the specified path and generates compiled CSS files into the specified
154154
path (according to the manifests).
155155

@@ -169,7 +169,7 @@ command before. Make :file:`setup.cfg` config:
169169
sdist = build_sass sdist
170170
bdist = build_sass bdist
171171

172-
Now it automatically builds SASS/SCSS sources and include compiled CSS files
172+
Now it automatically builds Sass/SCSS sources and include compiled CSS files
173173
to the package archive when you run :program:`setup.py sdist`.
174174

175175
.. _setuptools: https://pypi.python.org/pypi/setuptools

docs/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ file.
1010

1111
It currently supports CPython 2.6, 2.7, 3.4--3.6, and PyPy 2.3+!
1212

13-
.. _SASS: http://sass-lang.com/
13+
.. _Sass: http://sass-lang.com/
1414
.. _Libsass: https://github.com/sass/libsass
1515

1616

@@ -59,14 +59,14 @@ It's available on PyPI_, so you can install it using :program:`pip`:
5959
Examples
6060
--------
6161

62-
Compile a String of SASS to CSS
62+
Compile a String of Sass to CSS
6363
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6464

6565
>>> import sass
6666
>>> sass.compile(string='a { b { color: blue; } }')
6767
'a b {\n color: blue; }\n'
6868

69-
Compile a Directory of SASS Files to CSS
69+
Compile a Directory of Sass Files to CSS
7070
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7171

7272
>>> import sass
@@ -116,9 +116,9 @@ Credit
116116
Hong Minhee wrote this Python binding of Libsass_.
117117

118118
Hampton Catlin and Aaron Leung wrote Libsass_, which is portable C/C++
119-
implementation of SASS_.
119+
implementation of Sass_.
120120

121-
Hampton Catlin originally designed SASS_ language and wrote the first
121+
Hampton Catlin originally designed Sass_ language and wrote the first
122122
reference implementation of it in Ruby.
123123

124124
The above three softwares are all distributed under `MIT license`_.

pysass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ PySass_compile_filename(PyObject *self, PyObject *args) {
608608

609609
static PyMethodDef PySass_methods[] = {
610610
{"compile_string", PySass_compile_string, METH_VARARGS,
611-
"Compile a SASS string."},
611+
"Compile a Sass string."},
612612
{"compile_filename", PySass_compile_filename, METH_VARARGS,
613-
"Compile a SASS file."},
613+
"Compile a Sass file."},
614614
{NULL, NULL, 0, NULL}
615615
};
616616

sass.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ def compile(**kwargs):
267267
"""There are three modes of parameters :func:`compile()` can take:
268268
``string``, ``filename``, and ``dirname``.
269269
270-
The ``string`` parameter is the most basic way to compile SASS.
271-
It simply takes a string of SASS code, and then returns a compiled
270+
The ``string`` parameter is the most basic way to compile Sass.
271+
It simply takes a string of Sass code, and then returns a compiled
272272
CSS string.
273273
274-
:param string: SASS source code to compile. it's exclusive to
274+
:param string: Sass source code to compile. it's exclusive to
275275
``filename`` and ``dirname`` parameters
276276
:type string: :class:`str`
277277
:param output_style: an optional coding style of the compiled result.
@@ -282,7 +282,7 @@ def compile(**kwargs):
282282
:const:`False` by default
283283
:type source_comments: :class:`bool`
284284
:param include_paths: an optional list of paths to find ``@import``\ ed
285-
SASS/CSS source files
285+
Sass/CSS source files
286286
:type include_paths: :class:`collections.Sequence`
287287
:param precision: optional precision for numbers. :const:`5` by default.
288288
:type precision: :class:`int`
@@ -292,7 +292,7 @@ def compile(**kwargs):
292292
:type custom_functions: :class:`collections.Set`,
293293
:class:`collections.Sequence`,
294294
:class:`collections.Mapping`
295-
:param indented: optional declaration that the string is SASS, not SCSS
295+
:param indented: optional declaration that the string is Sass, not SCSS
296296
formatted. :const:`False` by default
297297
:type indented: :class:`bool`
298298
:returns: the compiled CSS string
@@ -302,12 +302,12 @@ def compile(**kwargs):
302302
:type importers: :class:`collections.Callable`
303303
:rtype: :class:`str`
304304
:raises sass.CompileError: when it fails for any reason
305-
(for example the given SASS has broken syntax)
305+
(for example the given Sass has broken syntax)
306306
307307
The ``filename`` is the most commonly used way. It takes a string of
308-
SASS filename, and then returns a compiled CSS string.
308+
Sass filename, and then returns a compiled CSS string.
309309
310-
:param filename: the filename of SASS source code to compile.
310+
:param filename: the filename of Sass source code to compile.
311311
it's exclusive to ``string`` and ``dirname`` parameters
312312
:type filename: :class:`str`
313313
:param output_style: an optional coding style of the compiled result.
@@ -322,7 +322,7 @@ def compile(**kwargs):
322322
using source maps. :const:`None` by default.
323323
:type source_map_filename: :class:`str`
324324
:param include_paths: an optional list of paths to find ``@import``\ ed
325-
SASS/CSS source files
325+
Sass/CSS source files
326326
:type include_paths: :class:`collections.Sequence`
327327
:param precision: optional precision for numbers. :const:`5` by default.
328328
:type precision: :class:`int`
@@ -340,13 +340,13 @@ def compile(**kwargs):
340340
and the source map string if ``source_map_filename`` is set
341341
:rtype: :class:`str`, :class:`tuple`
342342
:raises sass.CompileError: when it fails for any reason
343-
(for example the given SASS has broken syntax)
343+
(for example the given Sass has broken syntax)
344344
:raises exceptions.IOError: when the ``filename`` doesn't exist or
345345
cannot be read
346346
347347
The ``dirname`` is useful for automation. It takes a pair of paths.
348348
The first of the ``dirname`` pair refers the source directory, contains
349-
several SASS source files to compiled. SASS source files can be nested
349+
several Sass source files to compiled. Sass source files can be nested
350350
in directories. The second of the pair refers the output directory
351351
that compiled CSS files would be saved. Directory tree structure of
352352
the source directory will be maintained in the output directory as well.
@@ -364,7 +364,7 @@ def compile(**kwargs):
364364
:const:`False` by default
365365
:type source_comments: :class:`bool`
366366
:param include_paths: an optional list of paths to find ``@import``\ ed
367-
SASS/CSS source files
367+
Sass/CSS source files
368368
:type include_paths: :class:`collections.Sequence`
369369
:param precision: optional precision for numbers. :const:`5` by default.
370370
:type precision: :class:`int`
@@ -375,7 +375,7 @@ def compile(**kwargs):
375375
:class:`collections.Sequence`,
376376
:class:`collections.Mapping`
377377
:raises sass.CompileError: when it fails for any reason
378-
(for example the given SASS has broken syntax)
378+
(for example the given Sass has broken syntax)
379379
380380
.. _custom-functions:
381381

sassutils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
""":mod:`sassutils` --- Additional utilities related to SASS
1+
""":mod:`sassutils` --- Additional utilities related to Sass
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
4-
This package provides several additional utilities related to SASS
4+
This package provides several additional utilities related to Sass
55
which depends on libsass core (:mod:`sass` module).
66
77
"""

sassutils/builder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
def build_directory(sass_path, css_path, output_style='nested',
2929
_root_sass=None, _root_css=None):
30-
"""Compiles all SASS/SCSS files in ``path`` to CSS.
30+
"""Compiles all Sass/SCSS files in ``path`` to CSS.
3131
3232
:param sass_path: the path of the directory which contains source files
3333
to compile
@@ -78,9 +78,9 @@ def build_directory(sass_path, css_path, output_style='nested',
7878

7979

8080
class Manifest(object):
81-
"""Building manifest of SASS/SCSS.
81+
"""Building manifest of Sass/SCSS.
8282
83-
:param sass_path: the path of the directory that contains SASS/SCSS
83+
:param sass_path: the path of the directory that contains Sass/SCSS
8484
source files
8585
:type sass_path: :class:`str`, :class:`basestring`
8686
:param css_path: the path of the directory to store compiled CSS
@@ -136,13 +136,13 @@ def __init__(self, sass_path, css_path=None, wsgi_path=None):
136136
self.wsgi_path = wsgi_path
137137

138138
def resolve_filename(self, package_dir, filename):
139-
"""Gets a proper full relative path of SASS source and
139+
"""Gets a proper full relative path of Sass source and
140140
CSS source that will be generated, according to ``package_dir``
141141
and ``filename``.
142142
143143
:param package_dir: the path of package directory
144144
:type package_dir: :class:`str`, :class:`basestring`
145-
:param filename: the filename of SASS/SCSS source to compile
145+
:param filename: the filename of Sass/SCSS source to compile
146146
:type filename: :class:`str`, :class:`basestring`
147147
:returns: a pair of (sass, css) path
148148
:rtype: :class:`tuple`
@@ -154,7 +154,7 @@ def resolve_filename(self, package_dir, filename):
154154
return sass_path, css_path
155155

156156
def build(self, package_dir, output_style='nested'):
157-
"""Builds the SASS/SCSS files in the specified :attr:`sass_path`.
157+
"""Builds the Sass/SCSS files in the specified :attr:`sass_path`.
158158
It finds :attr:`sass_path` and locates :attr:`css_path`
159159
as relative to the given ``package_dir``.
160160
@@ -181,11 +181,11 @@ def build(self, package_dir, output_style='nested'):
181181
for filename in css_files)
182182

183183
def build_one(self, package_dir, filename, source_map=False):
184-
"""Builds one SASS/SCSS file.
184+
"""Builds one Sass/SCSS file.
185185
186186
:param package_dir: the path of package directory
187187
:type package_dir: :class:`str`, :class:`basestring`
188-
:param filename: the filename of SASS/SCSS source to compile
188+
:param filename: the filename of Sass/SCSS source to compile
189189
:type filename: :class:`str`, :class:`basestring`
190190
:param source_map: whether to use source maps. if :const:`True`
191191
it also write a source map to a ``filename``

sassutils/distutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
2424
$ python setup.py build_sass
2525
26-
This commands builds SASS/SCSS files to compiled CSS files of the project
26+
This commands builds Sass/SCSS files to compiled CSS files of the project
2727
and makes the package archive (made by :class:`~distutils.command.sdist.sdist`,
2828
:class:`~distutils.command.bdist.bdist`, and so on) to include these compiled
2929
CSS files.
3030
31-
To set the directory of SASS/SCSS source files and the directory to
31+
To set the directory of Sass/SCSS source files and the directory to
3232
store compiled CSS files, specify ``sass_manifests`` option::
3333
3434
from setuptools import find_packages, setup
@@ -87,7 +87,7 @@ def validate_manifests(dist, attr, value):
8787

8888

8989
class build_sass(Command):
90-
"""Builds SASS/SCSS files to CSS files."""
90+
"""Builds Sass/SCSS files to CSS files."""
9191

9292
description = __doc__
9393
user_options = [
@@ -165,7 +165,7 @@ def get_package_dir(self, package):
165165

166166

167167
# Does monkey-patching the setuptools.command.sdist.sdist.check_readme()
168-
# method to include compiled SASS files as data files.
168+
# method to include compiled Sass files as data files.
169169
if not hasattr(sdist, '_wrapped_check_readme'):
170170
@functools.wraps(sdist.check_readme)
171171
def check_readme(self):

sassutils/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class SassMiddleware(object):
2121
r"""WSGI middleware for development purpose. Everytime a CSS file has
22-
requested it finds a matched SASS/SCSS source file and then compiled
22+
requested it finds a matched Sass/SCSS source file and then compiled
2323
it into CSS.
2424
2525
It shows syntax errors in three ways:

0 commit comments

Comments
 (0)