Accepting request 78852 from devel:languages:python

- fix build for platform == linux3 (forwarded request 78835 from oertel)

OBS-URL: https://build.opensuse.org/request/show/78852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=10
This commit is contained in:
2011-08-17 22:05:34 +00:00
committed by Git OBS Bridge
parent 116e04c510
commit 28081e1cea
4 changed files with 65 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
diff -uNr matplotlib-1.0.1.orig/lib/matplotlib/sphinxext/plot_directive.py matplotlib-1.0.1/lib/matplotlib/sphinxext/plot_directive.py
--- matplotlib-1.0.1.orig/lib/matplotlib/sphinxext/plot_directive.py 2011-01-23 05:42:08.000000000 +0900
+++ matplotlib-1.0.1/lib/matplotlib/sphinxext/plot_directive.py 2011-01-23 05:44:48.000000000 +0900
@@ -346,7 +346,7 @@
del options['nofigs']
formats = setup.config.plot_formats
- if type(formats) == str:
+ if type(formats) == str or type(formats) == unicode:
formats = eval(formats)
fname = os.path.basename(plot_path)