Skip to content

Commit 23f970f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7639a9e commit 23f970f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

jupyter_server/auth/security.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def passwd(passphrase=None, algorithm="argon2"):
4141
4242
Examples
4343
--------
44-
>>> passwd('mypassword') # doctest: +ELLIPSIS
44+
>>> passwd("mypassword") # doctest: +ELLIPSIS
4545
'argon2:...'
4646
4747
"""
@@ -93,15 +93,14 @@ def passwd_check(hashed_passphrase, passphrase):
9393
9494
Examples
9595
--------
96-
>>> myhash = passwd('mypassword')
97-
>>> passwd_check(myhash, 'mypassword')
96+
>>> myhash = passwd("mypassword")
97+
>>> passwd_check(myhash, "mypassword")
9898
True
9999
100-
>>> passwd_check(myhash, 'otherpassword')
100+
>>> passwd_check(myhash, "otherpassword")
101101
False
102102
103-
>>> passwd_check('sha1:0e112c3ddfce:a68df677475c2b47b6e86d0467eec97ac5f4b85a',
104-
... 'mypassword')
103+
>>> passwd_check("sha1:0e112c3ddfce:a68df677475c2b47b6e86d0467eec97ac5f4b85a", "mypassword")
105104
True
106105
"""
107106
if hashed_passphrase.startswith("argon2:"):

jupyter_server/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ def filefind(filename: str, path_dirs: Sequence[str] | str | None = None) -> str
344344
path dirs is given, the filename is tested as is, after running through
345345
:func:`expandvars` and :func:`expanduser`. Thus a simple call::
346346
347-
filefind('myfile.txt')
347+
filefind("myfile.txt")
348348
349349
will find the file in the current working dir, but::
350350
351-
filefind('~/myfile.txt')
351+
filefind("~/myfile.txt")
352352
353353
Will find the file in the users home directory. This function does not
354354
automatically try any paths, such as the cwd or the user's home directory.

0 commit comments

Comments
 (0)