set stacklevel=1
This commit is contained in:
parent
1ae3ffb9a2
commit
8fd6896a71
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ def writefile(
|
|||
bounds = pattern.get_bounds(library=library)
|
||||
if bounds is None:
|
||||
bounds_min, bounds_max = numpy.array([[-1, -1], [1, 1]])
|
||||
warnings.warn('Pattern had no bounds (empty?); setting arbitrary viewbox')
|
||||
warnings.warn('Pattern had no bounds (empty?); setting arbitrary viewbox', stacklevel=1)
|
||||
else:
|
||||
bounds_min, bounds_max = bounds
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ def writefile_inverted(
|
|||
bounds = pattern.get_bounds(library=library)
|
||||
if bounds is None:
|
||||
bounds_min, bounds_max = numpy.array([[-1, -1], [1, 1]])
|
||||
warnings.warn('Pattern had no bounds (empty?); setting arbitrary viewbox')
|
||||
warnings.warn('Pattern had no bounds (empty?); setting arbitrary viewbox', stacklevel=1)
|
||||
else:
|
||||
bounds_min, bounds_max = bounds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue