Re: Parsing error for ConfigParser

2010-09-23 Thread Philip Semanchuk
On Sep 23, 2010, at 1:22 PM, Andrew Z. wrote: > Is there a way to parse RealPlayer's realplayerrc in Python? I need > to support Python 2.5 - 2.7 > > Example code > > import urllib2 > import ConfigParser > f = urllib2.urlopen('http://pastebin.com/download.php?i=N1AcUg3w') > config = ConfigPars

Parsing error for ConfigParser

2010-09-23 Thread Andrew Z.
Is there a way to parse RealPlayer's realplayerrc in Python? I need to support Python 2.5 - 2.7 Example code import urllib2 import ConfigParser f = urllib2.urlopen('http://pastebin.com/download.php?i=N1AcUg3w') config = ConfigParser.RawConfigParser() config.readfp(f) Error Traceback (most rece