gecko-dev/netwerk/cache2
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
..
AppCacheStorage.cpp Bug 1650613 - Fix about:cache appcache listing, let AppCacheStorage be visited with null load context info, r=michal,necko-reviewers 2020-07-10 11:21:14 +00:00
AppCacheStorage.h
CacheEntry.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
CacheEntry.h
CacheFile.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
CacheFile.h
CacheFileChunk.cpp
CacheFileChunk.h
CacheFileContextEvictor.cpp Bug 1659923 - Avoid unnecessary copies around Base64Encode. r=xpcom-reviewers,necko-reviewers,froydnj,valentin 2020-08-19 17:45:16 +00:00
CacheFileContextEvictor.h
CacheFileIOManager.cpp Bug 1664020 - ShutdownEvent::PostAndWait should return immediately if posting the event fails r=necko-reviewers,kershaw 2020-09-14 09:27:42 +00:00
CacheFileIOManager.h
CacheFileInputStream.cpp
CacheFileInputStream.h
CacheFileMetadata.cpp
CacheFileMetadata.h
CacheFileOutputStream.cpp
CacheFileOutputStream.h
CacheFileUtils.cpp Bug 1642602 - Make about:cache show all entries, remove the no longer usable context switch UI, r=michal,necko-reviewers 2020-07-03 11:41:53 +00:00
CacheFileUtils.h
CacheHashUtils.cpp
CacheHashUtils.h
CacheIOThread.cpp Bug 1669256 - Part 1: Remove AbstractEventQueue and de-templatize ThreadEventQueue. r=smaug 2020-10-09 17:56:34 +00:00
CacheIOThread.h
CacheIndex.cpp Bug 1662011 - Remove hash stats code from the cache, r=valentin,necko-reviewers 2020-08-31 06:53:06 +00:00
CacheIndex.h Bug 1662011 - Remove hash stats code from the cache, r=valentin,necko-reviewers 2020-08-31 06:53:06 +00:00
CacheIndexContextIterator.cpp
CacheIndexContextIterator.h
CacheIndexIterator.cpp Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj 2020-06-10 10:46:14 +00:00
CacheIndexIterator.h
CacheLog.cpp
CacheLog.h
CacheObserver.cpp Bug 1662012 - Remove filesystem reporting from the cache, r=valentin,necko-reviewers 2020-08-31 15:16:07 +00:00
CacheObserver.h Bug 1662012 - Remove filesystem reporting from the cache, r=valentin,necko-reviewers 2020-08-31 15:16:07 +00:00
CacheStorage.cpp Bug 1642602 - Make about:cache show all entries, remove the no longer usable context switch UI, r=michal,necko-reviewers 2020-07-03 11:41:53 +00:00
CacheStorage.h Bug 1642602 - Make about:cache show all entries, remove the no longer usable context switch UI, r=michal,necko-reviewers 2020-07-03 11:41:53 +00:00
CacheStorageService.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
CacheStorageService.h Bug 1487101 - Do not interrupt purging of HTTP cache entries from memory by frecency until the pool containts at most 2000 entries, r=michal,necko-reviewers 2020-06-19 05:43:42 +00:00
OldWrappers.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
OldWrappers.h
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsICacheEntry.idl
nsICacheEntryDoomCallback.idl
nsICacheEntryOpenCallback.idl
nsICacheStorage.idl
nsICacheStorageService.idl
nsICacheStorageVisitor.idl
nsICacheTesting.idl