SourceForge logo
SourceForge logo
Menu

matplotlib-checkins — Commit notification. DO NOT POST to this list, just subscribe to it.

You can subscribe to this list here.

2007 Jan
Feb
Mar
Apr
May
Jun
Jul
(115)
Aug
(120)
Sep
(137)
Oct
(170)
Nov
(461)
Dec
(263)
2008 Jan
(120)
Feb
(74)
Mar
(35)
Apr
(74)
May
(245)
Jun
(356)
Jul
(240)
Aug
(115)
Sep
(78)
Oct
(225)
Nov
(98)
Dec
(271)
2009 Jan
(132)
Feb
(84)
Mar
(74)
Apr
(56)
May
(90)
Jun
(79)
Jul
(83)
Aug
(296)
Sep
(214)
Oct
(76)
Nov
(82)
Dec
(66)
2010 Jan
(46)
Feb
(58)
Mar
(51)
Apr
(77)
May
(58)
Jun
(126)
Jul
(128)
Aug
(64)
Sep
(50)
Oct
(44)
Nov
(48)
Dec
(54)
2011 Jan
(68)
Feb
(52)
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
(1)
2018 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S




1
(2)
2
(2)
3
(2)
4
5
(2)
6
(4)
7
8
9
10
11
12
13
(1)
14
(2)
15
(3)
16
(7)
17
(1)
18
(1)
19
(3)
20
(16)
21
(3)
22
(4)
23
(2)
24
25
26
(6)
27
(3)
28
(9)
29
(2)
30
(2)

Showing 2 results of 2

Revision: 8229
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8229&view=rev
Author: efiring
Date: 2010年04月14日 22:44:13 +0000 (2010年4月14日)
Log Message:
-----------
backend_ps: fix file perms when TeX is used; minor clarifications
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py	2010年04月14日 18:48:36 UTC (rev 8228)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py	2010年04月14日 22:44:13 UTC (rev 8229)
@@ -997,7 +997,6 @@
 """
 isEPSF = format == 'eps'
 passed_in_file_object = False
- fd, tmpfile = mkstemp()
 if is_string_like(outfile):
 title = outfile
 elif is_writable_file_like(outfile):
@@ -1005,9 +1004,10 @@
 passed_in_file_object = True
 else:
 raise ValueError("outfile must be a path or a file-like object")
- os.close(fd)
- fh = file(tmpfile, 'w')
 
+ fd, tmpfile = mkstemp()
+ fh = os.fdopen(fd, 'w')
+
 # find the appropriate papertype
 width, height = self.figure.get_size_inches()
 if papertype == 'auto':
@@ -1153,12 +1153,11 @@
 xpdf_distill(tmpfile, isEPSF, ptype=papertype, bbox=bbox)
 
 if passed_in_file_object:
- fh = file(tmpfile)
+ fh = open(tmpfile)
 print >>outfile, fh.read()
 else:
- f = open(outfile, 'w')
+ open(outfile, 'w')
 mode = os.stat(outfile).st_mode
- f.close()
 shutil.move(tmpfile, outfile)
 os.chmod(outfile, mode)
 
@@ -1175,8 +1174,7 @@
 
 # write to a temp file, we'll move it to outfile when done
 fd, tmpfile = mkstemp()
- os.close(fd)
- fh = file(tmpfile, 'w')
+ fh = os.fdopen(fd, 'w')
 
 self.figure.dpi = 72 # ignore the dpi kwarg
 width, height = self.figure.get_size_inches()
@@ -1301,7 +1299,11 @@
 if isinstance(outfile, file):
 fh = file(tmpfile)
 print >>outfile, fh.read()
- else: shutil.move(tmpfile, outfile)
+ else:
+ open(outfile, 'w')
+ mode = os.stat(outfile).st_mode
+ shutil.move(tmpfile, outfile)
+ os.chmod(outfile, mode)
 
 def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
 paperWidth, paperHeight, orientation):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 8228
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8228&view=rev
Author: jrevans
Date: 2010年04月14日 18:48:36 +0000 (2010年4月14日)
Log Message:
-----------
Added the ps temp file ipermissions copy fix (as discussed on the devel list).
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py	2010年04月13日 22:55:23 UTC (rev 8227)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py	2010年04月14日 18:48:36 UTC (rev 8228)
@@ -1156,7 +1156,11 @@
 fh = file(tmpfile)
 print >>outfile, fh.read()
 else:
+ f = open(outfile, 'w')
+ mode = os.stat(outfile).st_mode
+ f.close()
 shutil.move(tmpfile, outfile)
+ os.chmod(outfile, mode)
 
 def _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor,
 orientation, isLandscape, papertype,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Showing 2 results of 2

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /