@@ -144,7 +144,7 @@ def __str__(self):
144
144
145
145
def compile_dirname (
146
146
search_path , output_path , output_style , source_comments , include_paths ,
147
- image_path , precision , custom_functions ,
147
+ precision , custom_functions ,
148
148
):
149
149
fs_encoding = sys .getfilesystemencoding () or sys .getdefaultencoding ()
150
150
for dirpath , _ , filenames in os .walk (search_path ):
@@ -159,7 +159,7 @@ def compile_dirname(
159
159
input_filename = input_filename .encode (fs_encoding )
160
160
s , v , _ = compile_filename (
161
161
input_filename , output_style , source_comments , include_paths ,
162
- image_path , precision , None , custom_functions ,
162
+ precision , None , custom_functions ,
163
163
)
164
164
if s :
165
165
v = v .decode ('UTF-8' )
@@ -192,8 +192,6 @@ def compile(**kwargs):
192
192
:param include_paths: an optional list of paths to find ``@import``\ ed
193
193
SASS/CSS source files
194
194
:type include_paths: :class:`collections.Sequence`, :class:`str`
195
- :param image_path: an optional path to find images
196
- :type image_path: :class:`str`
197
195
:param precision: optional precision for numbers. :const:`5` by default.
198
196
:type precision: :class:`int`
199
197
:param custom_functions: optional mapping of custom functions.
@@ -229,8 +227,6 @@ def compile(**kwargs):
229
227
:param include_paths: an optional list of paths to find ``@import``\ ed
230
228
SASS/CSS source files
231
229
:type include_paths: :class:`collections.Sequence`, :class:`str`
232
- :param image_path: an optional path to find images
233
- :type image_path: :class:`str`
234
230
:param precision: optional precision for numbers. :const:`5` by default.
235
231
:type precision: :class:`int`
236
232
:param custom_functions: optional mapping of custom functions.
@@ -269,8 +265,6 @@ def compile(**kwargs):
269
265
:param include_paths: an optional list of paths to find ``@import``\ ed
270
266
SASS/CSS source files
271
267
:type include_paths: :class:`collections.Sequence`, :class:`str`
272
- :param image_path: an optional path to find images
273
- :type image_path: :class:`str`
274
268
:param precision: optional precision for numbers. :const:`5` by default.
275
269
:type precision: :class:`int`
276
270
:param custom_functions: optional mapping of custom functions.
@@ -424,16 +418,6 @@ def func_name(a, b):
424
418
'Windows) string, not ' + repr (include_paths ))
425
419
if isinstance (include_paths , text_type ):
426
420
include_paths = include_paths .encode (fs_encoding )
427
- try :
428
- image_path = kwargs .pop ('image_path' )
429
- except KeyError :
430
- image_path = b'.'
431
- else :
432
- if not isinstance (image_path , string_types ):
433
- raise TypeError ('image_path must be a string, not ' +
434
- repr (image_path ))
435
- elif isinstance (image_path , text_type ):
436
- image_path = image_path .encode (fs_encoding )
437
421
438
422
custom_functions = kwargs .pop ('custom_functions' , ())
439
423
if isinstance (custom_functions , collections .Mapping ):
@@ -460,10 +444,10 @@ def func_name(a, b):
460
444
string = kwargs .pop ('string' )
461
445
if isinstance (string , text_type ):
462
446
string = string .encode ('utf-8' )
463
- s , v = compile_string (string ,
464
- output_style , source_comments ,
465
- include_paths , image_path , precision ,
466
- custom_functions )
447
+ s , v = compile_string (
448
+ string , output_style , source_comments , include_paths , precision ,
449
+ custom_functions ,
450
+ )
467
451
if s :
468
452
return v .decode ('utf-8' )
469
453
elif 'filename' in modes :
@@ -475,10 +459,8 @@ def func_name(a, b):
475
459
elif isinstance (filename , text_type ):
476
460
filename = filename .encode (fs_encoding )
477
461
s , v , source_map = compile_filename (
478
- filename ,
479
- output_style , source_comments ,
480
- include_paths , image_path , precision , source_map_filename ,
481
- custom_functions ,
462
+ filename , output_style , source_comments , include_paths , precision ,
463
+ source_map_filename , custom_functions ,
482
464
)
483
465
if s :
484
466
v = v .decode ('utf-8' )
@@ -522,10 +504,8 @@ def func_name(a, b):
522
504
raise ValueError ('dirname must be a pair of (source_dir, '
523
505
'output_dir)' )
524
506
s , v = compile_dirname (
525
- search_path , output_path ,
526
- output_style , source_comments ,
527
- include_paths , image_path , precision ,
528
- custom_functions ,
507
+ search_path , output_path , output_style , source_comments ,
508
+ include_paths , precision , custom_functions ,
529
509
)
530
510
if s :
531
511
return
0 commit comments