code formatting (black)
This commit is contained in:
parent
94707d8957
commit
de5ba6ced6
2 changed files with 6 additions and 10 deletions
|
|
@ -450,8 +450,9 @@ def display_page(context):
|
|||
if context["cs_dark_mode_invert_videos"]
|
||||
else "video.catsoop-darkmode-invert"
|
||||
)
|
||||
context["cs_dark_mode_javascript"] = (
|
||||
"""
|
||||
context[
|
||||
"cs_dark_mode_javascript"
|
||||
] = """
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
if (DarkReader.isEnabled()) {
|
||||
var invertfilter = 'invert(100%%) hue-rotate(180deg)' +
|
||||
|
|
@ -463,11 +464,9 @@ def display_page(context):
|
|||
inverter.innerText = '%s, %s {filter: ' + invertfilter + ';}\\n\\n'
|
||||
document.head.appendChild(inverter);
|
||||
}
|
||||
});"""
|
||||
% (
|
||||
imgselector,
|
||||
videoselector,
|
||||
)
|
||||
});""" % (
|
||||
imgselector,
|
||||
videoselector,
|
||||
)
|
||||
|
||||
out = (
|
||||
|
|
|
|||
3
catsoop/thirdparty/oauth2/__init__.py
vendored
3
catsoop/thirdparty/oauth2/__init__.py
vendored
|
|
@ -625,7 +625,6 @@ class Request(dict):
|
|||
http_url=None,
|
||||
parameters=None,
|
||||
):
|
||||
|
||||
if not parameters:
|
||||
parameters = {}
|
||||
|
||||
|
|
@ -673,7 +672,6 @@ class Client(httplib2.Http):
|
|||
"""OAuthClient is a worker to attempt to execute a request."""
|
||||
|
||||
def __init__(self, consumer, token=None, **kwargs):
|
||||
|
||||
if consumer is not None and not isinstance(consumer, Consumer):
|
||||
raise ValueError("Invalid consumer.")
|
||||
|
||||
|
|
@ -916,7 +914,6 @@ class SignatureMethod_HMAC_SHA1(SignatureMethod):
|
|||
|
||||
|
||||
class SignatureMethod_PLAINTEXT(SignatureMethod):
|
||||
|
||||
name = "PLAINTEXT"
|
||||
|
||||
def signing_base(self, request, consumer, token):
|
||||
|
|
|
|||
Loading…
Reference in a new issue