Skip to content

Commit 585b963

Browse files
committed
autopep8 --in-place --select=F401,W291,E201,E202,E231 ./tests/*.py ./shotgun_api3/shotgun.py ./shotgun_api3/lib/*.py
1 parent fdda095 commit 585b963

File tree

11 files changed

+533
-533
lines changed

11 files changed

+533
-533
lines changed

shotgun_api3/lib/mimetypes.py

Lines changed: 123 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
_winreg = None
3434

3535
__all__ = [
36-
"guess_type","guess_extension","guess_all_extensions",
37-
"add_type","read_mime_types","init"
36+
"guess_type", "guess_extension", "guess_all_extensions",
37+
"add_type", "read_mime_types", "init"
3838
]
3939

4040
knownfiles = [
@@ -402,131 +402,131 @@ def _default_mime_types():
402402

403403
# If you add to these, please keep them sorted!
404404
types_map = {
405-
'.a' : 'application/octet-stream',
406-
'.ai' : 'application/postscript',
407-
'.aif' : 'audio/x-aiff',
408-
'.aifc' : 'audio/x-aiff',
409-
'.aiff' : 'audio/x-aiff',
410-
'.au' : 'audio/basic',
411-
'.avi' : 'video/x-msvideo',
412-
'.bat' : 'text/plain',
413-
'.bcpio' : 'application/x-bcpio',
414-
'.bin' : 'application/octet-stream',
415-
'.bmp' : 'image/x-ms-bmp',
416-
'.c' : 'text/plain',
405+
'.a': 'application/octet-stream',
406+
'.ai': 'application/postscript',
407+
'.aif': 'audio/x-aiff',
408+
'.aifc': 'audio/x-aiff',
409+
'.aiff': 'audio/x-aiff',
410+
'.au': 'audio/basic',
411+
'.avi': 'video/x-msvideo',
412+
'.bat': 'text/plain',
413+
'.bcpio': 'application/x-bcpio',
414+
'.bin': 'application/octet-stream',
415+
'.bmp': 'image/x-ms-bmp',
416+
'.c': 'text/plain',
417417
# Duplicates :(
418-
'.cdf' : 'application/x-cdf',
419-
'.cdf' : 'application/x-netcdf',
420-
'.cpio' : 'application/x-cpio',
421-
'.csh' : 'application/x-csh',
422-
'.css' : 'text/css',
423-
'.dll' : 'application/octet-stream',
424-
'.doc' : 'application/msword',
425-
'.dot' : 'application/msword',
426-
'.dvi' : 'application/x-dvi',
427-
'.eml' : 'message/rfc822',
428-
'.eps' : 'application/postscript',
429-
'.etx' : 'text/x-setext',
430-
'.exe' : 'application/octet-stream',
431-
'.gif' : 'image/gif',
432-
'.gtar' : 'application/x-gtar',
433-
'.h' : 'text/plain',
434-
'.hdf' : 'application/x-hdf',
435-
'.htm' : 'text/html',
436-
'.html' : 'text/html',
437-
'.ico' : 'image/vnd.microsoft.icon',
438-
'.ief' : 'image/ief',
439-
'.jpe' : 'image/jpeg',
440-
'.jpeg' : 'image/jpeg',
441-
'.jpg' : 'image/jpeg',
442-
'.js' : 'application/javascript',
443-
'.ksh' : 'text/plain',
444-
'.latex' : 'application/x-latex',
445-
'.m1v' : 'video/mpeg',
446-
'.man' : 'application/x-troff-man',
447-
'.me' : 'application/x-troff-me',
448-
'.mht' : 'message/rfc822',
449-
'.mhtml' : 'message/rfc822',
450-
'.mif' : 'application/x-mif',
451-
'.mov' : 'video/quicktime',
452-
'.movie' : 'video/x-sgi-movie',
453-
'.mp2' : 'audio/mpeg',
454-
'.mp3' : 'audio/mpeg',
455-
'.mp4' : 'video/mp4',
456-
'.mpa' : 'video/mpeg',
457-
'.mpe' : 'video/mpeg',
458-
'.mpeg' : 'video/mpeg',
459-
'.mpg' : 'video/mpeg',
460-
'.ms' : 'application/x-troff-ms',
461-
'.nc' : 'application/x-netcdf',
462-
'.nws' : 'message/rfc822',
463-
'.o' : 'application/octet-stream',
464-
'.obj' : 'application/octet-stream',
465-
'.oda' : 'application/oda',
466-
'.p12' : 'application/x-pkcs12',
467-
'.p7c' : 'application/pkcs7-mime',
468-
'.pbm' : 'image/x-portable-bitmap',
469-
'.pdf' : 'application/pdf',
470-
'.pfx' : 'application/x-pkcs12',
471-
'.pgm' : 'image/x-portable-graymap',
472-
'.pl' : 'text/plain',
473-
'.png' : 'image/png',
474-
'.pnm' : 'image/x-portable-anymap',
475-
'.pot' : 'application/vnd.ms-powerpoint',
476-
'.ppa' : 'application/vnd.ms-powerpoint',
477-
'.ppm' : 'image/x-portable-pixmap',
478-
'.pps' : 'application/vnd.ms-powerpoint',
479-
'.ppt' : 'application/vnd.ms-powerpoint',
480-
'.ps' : 'application/postscript',
481-
'.pwz' : 'application/vnd.ms-powerpoint',
482-
'.py' : 'text/x-python',
483-
'.pyc' : 'application/x-python-code',
484-
'.pyo' : 'application/x-python-code',
485-
'.qt' : 'video/quicktime',
486-
'.ra' : 'audio/x-pn-realaudio',
487-
'.ram' : 'application/x-pn-realaudio',
488-
'.ras' : 'image/x-cmu-raster',
489-
'.rdf' : 'application/xml',
490-
'.rgb' : 'image/x-rgb',
491-
'.roff' : 'application/x-troff',
492-
'.rtx' : 'text/richtext',
493-
'.sgm' : 'text/x-sgml',
494-
'.sgml' : 'text/x-sgml',
495-
'.sh' : 'application/x-sh',
496-
'.shar' : 'application/x-shar',
497-
'.snd' : 'audio/basic',
498-
'.so' : 'application/octet-stream',
499-
'.src' : 'application/x-wais-source',
418+
'.cdf': 'application/x-cdf',
419+
'.cdf': 'application/x-netcdf',
420+
'.cpio': 'application/x-cpio',
421+
'.csh': 'application/x-csh',
422+
'.css': 'text/css',
423+
'.dll': 'application/octet-stream',
424+
'.doc': 'application/msword',
425+
'.dot': 'application/msword',
426+
'.dvi': 'application/x-dvi',
427+
'.eml': 'message/rfc822',
428+
'.eps': 'application/postscript',
429+
'.etx': 'text/x-setext',
430+
'.exe': 'application/octet-stream',
431+
'.gif': 'image/gif',
432+
'.gtar': 'application/x-gtar',
433+
'.h': 'text/plain',
434+
'.hdf': 'application/x-hdf',
435+
'.htm': 'text/html',
436+
'.html': 'text/html',
437+
'.ico': 'image/vnd.microsoft.icon',
438+
'.ief': 'image/ief',
439+
'.jpe': 'image/jpeg',
440+
'.jpeg': 'image/jpeg',
441+
'.jpg': 'image/jpeg',
442+
'.js': 'application/javascript',
443+
'.ksh': 'text/plain',
444+
'.latex': 'application/x-latex',
445+
'.m1v': 'video/mpeg',
446+
'.man': 'application/x-troff-man',
447+
'.me': 'application/x-troff-me',
448+
'.mht': 'message/rfc822',
449+
'.mhtml': 'message/rfc822',
450+
'.mif': 'application/x-mif',
451+
'.mov': 'video/quicktime',
452+
'.movie': 'video/x-sgi-movie',
453+
'.mp2': 'audio/mpeg',
454+
'.mp3': 'audio/mpeg',
455+
'.mp4': 'video/mp4',
456+
'.mpa': 'video/mpeg',
457+
'.mpe': 'video/mpeg',
458+
'.mpeg': 'video/mpeg',
459+
'.mpg': 'video/mpeg',
460+
'.ms': 'application/x-troff-ms',
461+
'.nc': 'application/x-netcdf',
462+
'.nws': 'message/rfc822',
463+
'.o': 'application/octet-stream',
464+
'.obj': 'application/octet-stream',
465+
'.oda': 'application/oda',
466+
'.p12': 'application/x-pkcs12',
467+
'.p7c': 'application/pkcs7-mime',
468+
'.pbm': 'image/x-portable-bitmap',
469+
'.pdf': 'application/pdf',
470+
'.pfx': 'application/x-pkcs12',
471+
'.pgm': 'image/x-portable-graymap',
472+
'.pl': 'text/plain',
473+
'.png': 'image/png',
474+
'.pnm': 'image/x-portable-anymap',
475+
'.pot': 'application/vnd.ms-powerpoint',
476+
'.ppa': 'application/vnd.ms-powerpoint',
477+
'.ppm': 'image/x-portable-pixmap',
478+
'.pps': 'application/vnd.ms-powerpoint',
479+
'.ppt': 'application/vnd.ms-powerpoint',
480+
'.ps': 'application/postscript',
481+
'.pwz': 'application/vnd.ms-powerpoint',
482+
'.py': 'text/x-python',
483+
'.pyc': 'application/x-python-code',
484+
'.pyo': 'application/x-python-code',
485+
'.qt': 'video/quicktime',
486+
'.ra': 'audio/x-pn-realaudio',
487+
'.ram': 'application/x-pn-realaudio',
488+
'.ras': 'image/x-cmu-raster',
489+
'.rdf': 'application/xml',
490+
'.rgb': 'image/x-rgb',
491+
'.roff': 'application/x-troff',
492+
'.rtx': 'text/richtext',
493+
'.sgm': 'text/x-sgml',
494+
'.sgml': 'text/x-sgml',
495+
'.sh': 'application/x-sh',
496+
'.shar': 'application/x-shar',
497+
'.snd': 'audio/basic',
498+
'.so': 'application/octet-stream',
499+
'.src': 'application/x-wais-source',
500500
'.sv4cpio': 'application/x-sv4cpio',
501-
'.sv4crc' : 'application/x-sv4crc',
502-
'.swf' : 'application/x-shockwave-flash',
503-
'.t' : 'application/x-troff',
504-
'.tar' : 'application/x-tar',
505-
'.tcl' : 'application/x-tcl',
506-
'.tex' : 'application/x-tex',
507-
'.texi' : 'application/x-texinfo',
501+
'.sv4crc': 'application/x-sv4crc',
502+
'.swf': 'application/x-shockwave-flash',
503+
'.t': 'application/x-troff',
504+
'.tar': 'application/x-tar',
505+
'.tcl': 'application/x-tcl',
506+
'.tex': 'application/x-tex',
507+
'.texi': 'application/x-texinfo',
508508
'.texinfo': 'application/x-texinfo',
509-
'.tif' : 'image/tiff',
510-
'.tiff' : 'image/tiff',
511-
'.tr' : 'application/x-troff',
512-
'.tsv' : 'text/tab-separated-values',
513-
'.txt' : 'text/plain',
514-
'.ustar' : 'application/x-ustar',
515-
'.vcf' : 'text/x-vcard',
516-
'.wav' : 'audio/x-wav',
517-
'.wiz' : 'application/msword',
518-
'.wsdl' : 'application/xml',
519-
'.xbm' : 'image/x-xbitmap',
520-
'.xlb' : 'application/vnd.ms-excel',
509+
'.tif': 'image/tiff',
510+
'.tiff': 'image/tiff',
511+
'.tr': 'application/x-troff',
512+
'.tsv': 'text/tab-separated-values',
513+
'.txt': 'text/plain',
514+
'.ustar': 'application/x-ustar',
515+
'.vcf': 'text/x-vcard',
516+
'.wav': 'audio/x-wav',
517+
'.wiz': 'application/msword',
518+
'.wsdl': 'application/xml',
519+
'.xbm': 'image/x-xbitmap',
520+
'.xlb': 'application/vnd.ms-excel',
521521
# Duplicates :(
522-
'.xls' : 'application/excel',
523-
'.xls' : 'application/vnd.ms-excel',
524-
'.xml' : 'text/xml',
525-
'.xpdl' : 'application/xml',
526-
'.xpm' : 'image/x-xpixmap',
527-
'.xsl' : 'application/xml',
528-
'.xwd' : 'image/x-xwindowdump',
529-
'.zip' : 'application/zip',
522+
'.xls': 'application/excel',
523+
'.xls': 'application/vnd.ms-excel',
524+
'.xml': 'text/xml',
525+
'.xpdl': 'application/xml',
526+
'.xpm': 'image/x-xpixmap',
527+
'.xsl': 'application/xml',
528+
'.xwd': 'image/x-xwindowdump',
529+
'.zip': 'application/zip',
530530
}
531531

532532
# These are non-standard types, commonly found in the wild. They will

shotgun_api3/lib/sgtimezone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /opt/local/bin/python
22
# ----------------------------------------------------------------------------
33
# SG_TIMEZONE module
4-
# this is rolled into the this shotgun api file to avoid having to require
4+
# this is rolled into the this shotgun api file to avoid having to require
55
# current users of api2 to install new modules and modify PYTHONPATH info.
66
# ----------------------------------------------------------------------------
77

@@ -23,7 +23,7 @@ class SgTimezone(object):
2323
DSTOFFSET = STDOFFSET
2424
DSTDIFF = DSTOFFSET - STDOFFSET
2525

26-
def __init__(self):
26+
def __init__(self):
2727
self.utc = UTC()
2828
self.local = LocalTimezone()
2929

0 commit comments

Comments
 (0)