Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e023faa

Browse filesBrowse files
committed
STY: fix whitespace
1 parent df27722 commit e023faa
Copy full SHA for e023faa

File tree

Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-5
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ def checkdep_pdftops():
420420
def checkdep_inkscape():
421421
if checkdep_inkscape.version is None:
422422
try:
423-
s = subprocess.Popen([str('inkscape'), '-V'], stdout=subprocess.PIPE,
423+
s = subprocess.Popen([str('inkscape'), '-V'],
424+
stdout=subprocess.PIPE,
424425
stderr=subprocess.PIPE)
425426
stdout, stderr = s.communicate()
426427
lines = stdout.decode('ascii').split('\n')
@@ -437,7 +438,8 @@ def checkdep_inkscape():
437438

438439
def checkdep_xmllint():
439440
try:
440-
s = subprocess.Popen([str('xmllint'), '--version'], stdout=subprocess.PIPE,
441+
s = subprocess.Popen([str('xmllint'), '--version'],
442+
stdout=subprocess.PIPE,
441443
stderr=subprocess.PIPE)
442444
stdout, stderr = s.communicate()
443445
lines = stderr.decode('ascii').split('\n')

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def make_pdf_to_png_converter():
179179
tools_available = []
180180
# check for pdftocairo
181181
try:
182-
check_output([str("pdftocairo"), str("-v")], stderr=subprocess.STDOUT)
182+
check_output([str("pdftocairo"), "-v"], stderr=subprocess.STDOUT)
183183
tools_available.append("pdftocairo")
184184
except:
185185
pass
@@ -194,8 +194,7 @@ def cairo_convert(pdffile, pngfile, dpi):
194194
cmd = [str("pdftocairo"), "-singlefile", "-png",
195195
"-r %d" % dpi, pdffile, os.path.splitext(pngfile)[0]]
196196
# for some reason this doesn't work without shell
197-
check_output(cmd, shell=True,
198-
stderr=subprocess.STDOUT)
197+
check_output(cmd, shell=True, stderr=subprocess.STDOUT)
199198
return cairo_convert
200199
elif "gs" in tools_available:
201200
def gs_convert(pdffile, pngfile, dpi):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.