]> Frank Brehm's Git Trees - my-stuff/isc-config-parser.git/commitdiff
Bugfixing
authorFrank Brehm <frank@brehm-online.com>
Sun, 16 Jan 2011 22:57:55 +0000 (22:57 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sun, 16 Jan 2011 22:57:55 +0000 (22:57 +0000)
git-svn-id: http://svn.brehm-online.com/svn/my-stuff/python/IscConfigParser/trunk@189 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa

IscConfigParser.py

index fa7290371da0689781be37f4cf05dba4b745b8ce..71d53bf731d900f5e62ee2ac445e285c64b423d4 100755 (executable)
@@ -82,17 +82,29 @@ class IscConfigParser(LoggingObject):
             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
+
 
 #========================================================================