git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/IscConfigParser/trunk@189
ec8d2aa5-1599-4edb-8739-
2b3a1bc399aa
fd = open( input, "r" )
self.current_filename = input
else:
- fs = sys.stdin
+ fd = sys.stdin
self.current_filename = '<stdin>'
+ self.current_fd = fd
+
self.logger.debug( "Reading configuration file {0!r} ...".format( self.current_filename ) )
if input is not None:
fd.close()
+ del self.current_fd
return result
+ #------------------------------------------------------
+ def read_next_line( self ):
+ """Read the next line from current file handle.
+ @return: the content of this line
+ @rtype: str
+ """
+
+ fd = self.current_fd
+
#========================================================================