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 5e5bbdc

Browse filesBrowse files
committed
More _check_in_list.
1 parent fdeeda5 commit 5e5bbdc
Copy full SHA for 5e5bbdc

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-5
lines changed

‎lib/matplotlib/backends/backend_ps.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_ps.py
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,7 @@ def _print_ps(self, outfile, format, *args,
849849
if papertype is None:
850850
papertype = rcParams['ps.papersize']
851851
papertype = papertype.lower()
852-
if papertype == 'auto':
853-
pass
854-
elif papertype not in papersize:
855-
raise RuntimeError('%s is not a valid papertype. Use one of %s' %
856-
(papertype, ', '.join(papersize)))
852+
cbook._check_in_list(['auto', *papersize], papertype=papertype)
857853

858854
orientation = orientation.lower()
859855
cbook._check_in_list(['landscape', 'portrait'],

0 commit comments

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