Author: bugman Date: Thu Sep 10 19:37:33 2009 New Revision: 9504 URL: http://svn.gna.org/viewcvs/relax?rev=9504&view=rev Log: Removed trailing whitespace. Modified: 1.3/data/__init__.py Modified: 1.3/data/__init__.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=9504&r1=9503&r2=9504&view=diff ============================================================================== --- 1.3/data/__init__.py (original) +++ 1.3/data/__init__.py Thu Sep 10 19:37:33 2009 @@ -57,7 +57,7 @@ # Class variable for storing the class instance. instance = None - def __new__(self, *args, **kargs): + def __new__(self, *args, **kargs): """Replacement function for implementing the singleton design pattern.""" # First initialisation. @@ -67,7 +67,7 @@ # Already initialised, so return the instance. return self.instance - + def __repr__(self): """The string representation of the object. @@ -231,14 +231,14 @@ # Create the pipe XML element and add it to the top level XML element. pipe_element = xmldoc.createElement('pipe') top_element.appendChild(pipe_element) - + # Set the data pipe attributes. pipe_element.setAttribute('desc', 'The contents of a relax data pipe') pipe_element.setAttribute('name', pipe) pipe_element.setAttribute('type', self[pipe].pipe_type) - + # Fill the data pipe XML element. self[pipe].to_xml(xmldoc, pipe_element) - + # Write out the XML file. file.write(xmldoc.toprettyxml(indent=' '))