Package pulp :: Package client :: Module repolib :: Class Reader
[hide private]
[frames] | no frames]

Class Reader

source code

Reader object used to mitigate annoying behavior of iniparse of leaving blank lines when removing sections.

Instance Methods [hide private]
 
__init__(self, path) source code
str
readline(self)
Read the next line.
source code
Method Details [hide private]

__init__(self, path)
(Constructor)

source code 
Parameters:
  • path (str) - The absolute path to a .repo file.

readline(self)

source code 

Read the next line. Strips annoying blank lines left by iniparse when removing sections.

Returns: str
The next line (or None).