Skip to content

Commit

Permalink
chore: various minor fixes (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
deronnax committed Feb 13, 2024
1 parent 8f4c07c commit 1aece7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/platformdirs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__( # noqa: PLR0913, PLR0917
That means that for users on a Windows network setup for roaming profiles, this user data will be synced on
login (see
`here <http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>`_).
`here <https://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>`_).
"""
self.multipath = multipath
Expand Down
6 changes: 3 additions & 3 deletions src/platformdirs/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import sys
from configparser import ConfigParser
from pathlib import Path
from typing import Iterator
from typing import Iterator, NoReturn

from .api import PlatformDirsABC

if sys.platform == "win32":

def getuid() -> int:
def getuid() -> NoReturn:
msg = "should only be used on Unix"
raise RuntimeError(msg)

Expand All @@ -25,7 +25,7 @@ class Unix(PlatformDirsABC): # noqa: PLR0904
On Unix/Linux, we follow the `XDG Basedir Spec <https://specifications.freedesktop.org/basedir-spec/basedir-spec-
latest.html>`_.
The spec allows overriding directories with environment variables. The examples show are the default values,
The spec allows overriding directories with environment variables. The examples shown are the default values,
alongside the name of the environment variable that overrides them. Makes use of the `appname
<platformdirs.api.PlatformDirsABC.appname>`, `version <platformdirs.api.PlatformDirsABC.version>`, `multipath
<platformdirs.api.PlatformDirsABC.multipath>`, `opinion <platformdirs.api.PlatformDirsABC.opinion>`, `ensure_exists
Expand Down
2 changes: 1 addition & 1 deletion src/platformdirs/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Windows(PlatformDirsABC):
"""
`MSDN on where to store app data files <http://support.microsoft.com/default.aspx?scid=kb;en-
`MSDN on where to store app data files <https://support.microsoft.com/default.aspx?scid=kb;en-
us;310294#XSLTH3194121123120121120120>`_.
Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `appauthor
Expand Down

0 comments on commit 1aece7e

Please sign in to comment.