mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-18 04:11:29 +00:00
Make pylint happier and code more PEP-8 compliant.
This commit is contained in:
parent
3e3b9bcff5
commit
ce2f96bc0d
8
lp-shell
8
lp-shell
@ -33,11 +33,11 @@ def main():
|
|||||||
opt_parser.add_option('-a', action='store_true',
|
opt_parser.add_option('-a', action='store_true',
|
||||||
dest='anonymous', default=False,
|
dest='anonymous', default=False,
|
||||||
help='Login anonymously into LP.')
|
help='Login anonymously into LP.')
|
||||||
opt_parser.add_option('--ipython',action='store_const',
|
opt_parser.add_option('--ipython', action='store_const',
|
||||||
dest='shell',const='ipython', default="ipython",
|
dest='shell', const='ipython', default="ipython",
|
||||||
help='Use ipython shell (default).')
|
help='Use ipython shell (default).')
|
||||||
opt_parser.add_option('--python',action='store_const',
|
opt_parser.add_option('--python', action='store_const',
|
||||||
dest='shell',const='python',
|
dest='shell', const='python',
|
||||||
help='Use python shell.')
|
help='Use python shell.')
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
|
||||||
import pwd
|
import pwd
|
||||||
import re
|
import re
|
||||||
import shlex
|
import shlex
|
||||||
|
@ -201,7 +201,7 @@ class Distribution(BaseWrapper):
|
|||||||
cached = Distribution(Launchpad.distributions[dist])
|
cached = Distribution(Launchpad.distributions[dist])
|
||||||
return cached
|
return cached
|
||||||
|
|
||||||
def getArchive(self, archive = None):
|
def getArchive(self, archive=None):
|
||||||
'''
|
'''
|
||||||
Returns an Archive object for the requested archive.
|
Returns an Archive object for the requested archive.
|
||||||
Raises a ArchiveNotFoundException if the archive doesn't exist.
|
Raises a ArchiveNotFoundException if the archive doesn't exist.
|
||||||
@ -278,7 +278,7 @@ class Archive(BaseWrapper):
|
|||||||
if '_srcpkgs' not in self.__dict__:
|
if '_srcpkgs' not in self.__dict__:
|
||||||
self._srcpkgs = dict()
|
self._srcpkgs = dict()
|
||||||
|
|
||||||
def getSourcePackage(self, name, series = None, pocket = 'Release'):
|
def getSourcePackage(self, name, series=None, pocket='Release'):
|
||||||
'''
|
'''
|
||||||
Returns a SourcePackagePublishingHistory object for the most
|
Returns a SourcePackagePublishingHistory object for the most
|
||||||
recent source package in the distribution 'dist', series and
|
recent source package in the distribution 'dist', series and
|
||||||
@ -333,7 +333,7 @@ class Archive(BaseWrapper):
|
|||||||
return self._srcpkgs[(name, series.name, pocket)]
|
return self._srcpkgs[(name, series.name, pocket)]
|
||||||
|
|
||||||
def copyPackage(self, source_name, version, from_archive, to_pocket,
|
def copyPackage(self, source_name, version, from_archive, to_pocket,
|
||||||
to_series = None, include_binaries = False):
|
to_series=None, include_binaries=False):
|
||||||
'''Copy a single named source into this archive.
|
'''Copy a single named source into this archive.
|
||||||
|
|
||||||
Asynchronously copy a specific version of a named source to the
|
Asynchronously copy a specific version of a named source to the
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
# Modules.
|
# Modules.
|
||||||
import locale
|
import locale
|
||||||
import os
|
import os
|
||||||
import os.path
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import distro_info
|
import distro_info
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
import __builtin__
|
import __builtin__
|
||||||
import os
|
import os
|
||||||
import os.path
|
|
||||||
import sys
|
import sys
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user