gecko-dev/xpcom/io
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
..
Base64.cpp Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj 2020-08-21 09:54:48 +00:00
Base64.h Bug 1659923 - Avoid unnecessary copies around Base64Encode. r=xpcom-reviewers,necko-reviewers,froydnj,valentin 2020-08-19 17:45:16 +00:00
CocoaFileUtils.h
CocoaFileUtils.mm
FileDescriptorFile.cpp Bug 1466532 - Part 1: Drop nsIFile::followLinks r=froydnj,necko-reviewers,dragana 2020-05-26 20:51:16 +00:00
FileDescriptorFile.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
FilePreferences.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
FilePreferences.h Bug 1634267 - DOS device paths shouldn't be blocked by IsBlockedUNCPath; r=dom-workers-and-storage-reviewers,janv,froydnj 2020-05-13 14:32:35 +00:00
FileUtilsWin.cpp
FileUtilsWin.h Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj 2020-07-01 08:42:31 +00:00
InputStreamLengthHelper.cpp Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj 2020-06-23 05:05:36 +00:00
InputStreamLengthHelper.h Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
InputStreamLengthWrapper.cpp Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana 2019-12-03 13:41:58 +00:00
InputStreamLengthWrapper.h
NonBlockingAsyncInputStream.cpp Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
NonBlockingAsyncInputStream.h Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
SlicedInputStream.cpp Bug 1625749 - Make sure SlicedInputStream initializes all its members. r=nika 2020-04-14 18:04:13 +00:00
SlicedInputStream.h
SnappyCompressOutputStream.cpp
SnappyCompressOutputStream.h
SnappyFrameUtils.cpp
SnappyFrameUtils.h Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
SnappyUncompressInputStream.cpp
SnappyUncompressInputStream.h
SpecialSystemDirectory.cpp Bug 1667872 - Fix GetWindowsFolder storage r=jmathies 2020-09-30 23:58:23 +00:00
SpecialSystemDirectory.h
components.conf Bug 1464542: Part 3b - Add existing Services.jsm registrations to the new services cache. r=mccr8,geckoview-reviewers,agi 2020-07-09 21:42:25 +00:00
crc32c.c
crc32c.h Bug 1562642 - add missing license in xpcom/ r=froydnj 2019-11-11 21:44:32 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsAnonymousTemporaryFile.cpp Bug 1651165 - Rename idle service r=Gijs,geckoview-reviewers,snorp 2020-07-20 16:06:59 +00:00
nsAnonymousTemporaryFile.h Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
nsAppDirectoryServiceDefs.h Bug 1619926 - Remove distribution search directory provider definitions. r=daleharvey 2020-09-01 18:08:22 +00:00
nsAppFileLocationProvider.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsAppFileLocationProvider.h Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
nsBinaryStream.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsBinaryStream.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsDirectoryService.cpp Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj 2020-07-01 08:34:12 +00:00
nsDirectoryService.h Bug 1599614 - nsDirectoryService::SetCurrentProcessDirectory is infallible. r=froydnj 2019-12-02 13:56:14 +00:00
nsDirectoryServiceDefs.h
nsDirectoryServiceUtils.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsEscape.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
nsEscape.h
nsIAsyncInputStream.idl Bug 1637742 - P1 - Protocol documentation now states no error should be returned if AsyncWait is called on closed stream r=baku 2020-06-02 11:09:47 +00:00
nsIAsyncOutputStream.idl
nsIBinaryInputStream.idl
nsIBinaryOutputStream.idl
nsICloneableInputStream.idl Bug 1648141 - IPCBlobInputStream to RemoteLazyInputStream - part 6 - remoteLazyInputStream, r=smaug,necko-reviewers,dragana 2020-06-29 11:02:55 +00:00
nsIConverterInputStream.idl
nsIConverterOutputStream.idl
nsIDirectoryEnumerator.idl
nsIDirectoryService.idl
nsIFile.idl Bug 1466532 - Part 1: Drop nsIFile::followLinks r=froydnj,necko-reviewers,dragana 2020-05-26 20:51:16 +00:00
nsIIOUtil.idl
nsIInputStream.idl
nsIInputStreamLength.idl
nsIInputStreamPriority.idl Bug 1608114 - Increase the priority of the TRR main thread events r=mayhemer 2020-01-31 08:46:44 +00:00
nsIInputStreamTee.idl
nsILineInputStream.idl
nsILocalFileMac.idl
nsILocalFileWin.idl Bug 1536796 - P1 - Introduce a flag (useDOSDevicePathSyntax) to nsILocalFileWin and a method (QM_NewLocalFile) to QuotaCommon; r=janv,dom-workers-and-storage-reviewers,froydnj 2020-04-01 07:26:27 +00:00
nsIMultiplexInputStream.idl
nsIOUtil.cpp
nsIOUtil.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsIObjectInputStream.idl
nsIObjectOutputStream.idl
nsIOutputStream.idl
nsIPipe.idl Bug 1624776 - Replace MOZ_MUST_USE with [[nodiscard]] in xpcom. r=xpcom-reviewers,KrisWright 2020-03-27 17:21:48 +00:00
nsISafeOutputStream.idl
nsIScriptableBase64Encoder.idl
nsIScriptableInputStream.idl
nsISeekableStream.idl
nsIStorageStream.idl
nsIStreamBufferAccess.idl
nsIStringStream.idl
nsITellableStream.idl
nsIUnicharInputStream.idl
nsIUnicharLineInputStream.idl
nsIUnicharOutputStream.idl
nsInputStreamTee.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsLinebreakConverter.cpp
nsLinebreakConverter.h
nsLocalFile.h
nsLocalFileCommon.cpp Bug 1650768 - P3. Add .fileloc and .webloc file extensions to executable extension list r=Gijs 2020-07-23 12:31:14 +00:00
nsLocalFileCommon.h Bug 1650768 - P3. Add .fileloc and .webloc file extensions to executable extension list r=Gijs 2020-07-23 12:31:14 +00:00
nsLocalFileUnix.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsLocalFileUnix.h Bug 1664077 - Move statvfs-related defines from nsLocalFileUnix.h to .cpp. r=sg 2020-09-15 14:53:07 +00:00
nsLocalFileWin.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsLocalFileWin.h Bug 1634454 - Resolve symlinks in nsLocalFileWin r=emk 2020-06-01 15:12:31 +00:00
nsMultiplexInputStream.cpp Bug 1659950 - Move instead of copy where possible in nsMultiplexInputStream::SerializeInternal. r=froydnj 2020-08-19 12:46:26 +00:00
nsMultiplexInputStream.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsNativeCharsetUtils.cpp Bug 1664077 - Remove xpcom-private.h. r=sg 2020-09-15 14:53:10 +00:00
nsNativeCharsetUtils.h
nsPipe.h
nsPipe3.cpp Bug 1644478 - Make nsPipeInputStream::mPriority Atomic r=mayhemer 2020-06-10 15:53:36 +00:00
nsScriptableBase64Encoder.cpp
nsScriptableBase64Encoder.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsScriptableInputStream.cpp Bug 1627390 - Add missing includes and namespaces to xpcom/io. r=xpcom-reviewers,sg 2020-04-07 19:09:47 +00:00
nsScriptableInputStream.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsSegmentedBuffer.cpp Bug 1667581 - Use a BackgroundTaskQueue to free up memory segments from nsSegmentedBuffer off main thread r=baku,sg 2020-10-22 10:47:39 +00:00
nsSegmentedBuffer.h Bug 1667581 - Use a BackgroundTaskQueue to free up memory segments from nsSegmentedBuffer off main thread r=baku,sg 2020-10-22 10:47:39 +00:00
nsStorageStream.cpp Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj 2020-08-21 09:54:48 +00:00
nsStorageStream.h
nsStreamUtils.cpp Bug 1636823 - nsInputTransport must support blocking and async source - part 1 - Use NS_MakeAsyncNonBlockingInputStream, r=smaug,necko-reviewers,mayhemer 2020-06-12 22:48:07 +00:00
nsStreamUtils.h Bug 1636823 - nsInputTransport must support blocking and async source - part 1 - Use NS_MakeAsyncNonBlockingInputStream, r=smaug,necko-reviewers,mayhemer 2020-06-12 22:48:07 +00:00
nsStringStream.cpp Bug 1595886 - Use a temp string in readSegments r=dragana 2020-04-15 12:31:34 +00:00
nsStringStream.h
nsUnicharInputStream.cpp Bug 1613985 - Use default for equivalent-to-default constructors/destructors in xpcom. r=froydnj 2020-02-12 11:13:33 +00:00
nsUnicharInputStream.h
nsWildCard.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
nsWildCard.h