Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f9fe2d

Browse files
committed
sync tconfig.py with sources in ipython1
svn path=/trunk/matplotlib/; revision=3718
1 parent 5536c1b commit 4f9fe2d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/matplotlib/config/tconfig.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ def __init__(self,config=None,parent=None,monitor=None):
370370
if config is None:
371371
config = mkConfigObj(None)
372372

373-
374-
375373
# Validate the set of scalars ...
376374
my_scalars = set(get_scalars(self))
377375
cf_scalars = set(config.scalars)
@@ -603,7 +601,7 @@ def writeAll(self,filename=None):
603601
604602
This method, in contrast with write(), updates the .fconfCombined
605603
object with the *entire* .tconf instance, and then writes it out to
606-
disk. This method is thus useful for generating files that contain an
604+
disk. This method is thus useful for generating files that have a
607605
self-contained, non-hierarchical file.
608606
609607
:Keywords:
@@ -615,12 +613,12 @@ def writeAll(self,filename=None):
615613
if filename is not None:
616614
fileObj = open(filename,'w')
617615
self.fconfUpdate(self.fconfCombined,self.tconf)
618-
out = self.fconf.write(fileObj)
616+
out = self.fconfCombined.write(fileObj)
619617
fileObj.close()
620618
return out
621619
else:
622620
self.fconfUpdate(self.fconfCombined,self.tconf)
623-
return self.fconf.write()
621+
return self.fconfCombined.write()
624622

625623
def tconfStr(self):
626624
return str(self.tconf)

0 commit comments

Comments
 (0)