You'll have to use Python 3, which shouldn't be a problem since current Ubuntu releases (aside from soon-to-be-EOL 12.04) all have Python 3 installed by default and are moving to using only Python3 by default. Use the aptsources.sourceslist.SourcesList object:
You'll have to use Python 3, which shouldn't be a problem since current Ubuntu releases (aside from soon-to-be-EOL 12.04) all have Python 3 installed by default and are moving to using only Python3 by default. Use the
aptsources.sourceslist.SourcesList
object: