PyLint tweaks.

Added .pylint-ignores patchfile, with waived PyLint warnings
This commit is contained in:
sneakypete81 2013-07-28 18:40:27 +01:00
parent 3e5ba6ae28
commit d8e874aad6
8 changed files with 250 additions and 12 deletions

View file

@ -44,7 +44,7 @@ def main(args=sys.argv[1:]):
action="store_true", dest="pretty", default=False)
parser.add_option('-v', help="Verbose output",
action="store_true", dest="verbose", default=False)
parser.add_option('--version', help="Display the current version information",
parser.add_option('--version', help="Display the current version",
action="store_true")
parser.add_option('--help', help='show this help message',
action="store_true")
@ -107,7 +107,8 @@ def main(args=sys.argv[1:]):
def extract_files(params):
"""
Extract filenames from the "photo" parameter, so they can be uploaded, returning (updated_params, files).
Extract filenames from the "photo" parameter so they can be uploaded,
returning (updated_params, files).
Uses the same technique as the Trovebox PHP commandline tool:
* Filename can only be in the "photo" parameter
* Filename must be prefixed with "@"