summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew W. Thompson <mattwthompson@protonmail.com>2022-09-19 16:21:03 -0500
committerMatthew W. Thompson <mattwthompson@protonmail.com>2022-09-19 16:21:03 -0500
commit6beb90e5b0652500616d93668c4237901ed64d8b (patch)
tree6ac8e4422f1c6b7ff1a0afd9504468e1d59fff34
parent25dc5a0b61703ec18181862f5d17a16f68dad9cb (diff)
downloadpint-6beb90e5b0652500616d93668c4237901ed64d8b.tar.gz
Un-lint vendored code
-rw-r--r--pint/_vendor/appdirs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pint/_vendor/appdirs.py b/pint/_vendor/appdirs.py
index fcccb6e..c32636a 100644
--- a/pint/_vendor/appdirs.py
+++ b/pint/_vendor/appdirs.py
@@ -17,8 +17,8 @@ __version__ = "1.4.4"
__version_info__ = tuple(int(segment) for segment in __version__.split("."))
-import os
import sys
+import os
PY3 = sys.version_info[0] == 3
@@ -477,7 +477,7 @@ def _get_win_folder_from_registry(csidl_name):
def _get_win_folder_with_pywin32(csidl_name):
- from win32com.shell import shell, shellcon
+ from win32com.shell import shellcon, shell
dir = shell.SHGetFolderPath(0, getattr(shellcon, csidl_name), 0, 0)
# Try to make this a unicode path because SHGetFolderPath does
# not return unicode strings when there is unicode data in the
@@ -531,7 +531,6 @@ def _get_win_folder_with_ctypes(csidl_name):
def _get_win_folder_with_jna(csidl_name):
import array
-
from com.sun import jna
from com.sun.jna.platform import win32