Skip to content

Commit de1810b

Browse files
authored
Use a more expressive API for getting the dir a path is in
1 parent c90099d commit de1810b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

certifi/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class DeprecatedBundleWarning(DeprecationWarning):
1919

2020

2121
def where():
22-
f = os.path.split(__file__)[0]
22+
f = os.path.dirname(__file__)
2323

2424
return os.path.join(f, 'cacert.pem')
2525

@@ -29,7 +29,7 @@ def old_where():
2929
"The weak security bundle is being deprecated.",
3030
DeprecatedBundleWarning
3131
)
32-
f = os.path.split(__file__)[0]
32+
f = os.path.dirname(__file__)
3333
return os.path.join(f, 'weak.pem')
3434

3535
if __name__ == '__main__':

0 commit comments

Comments
 (0)