8000 check and remove osp comments · winpython/winpython@294a732 · GitHub
[go: up one dir, main page]

Skip to content

Commit 294a732

Browse files
committed
check and remove osp comments
1 parent f65bb6e commit 294a732

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

winpython/qthelpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
4848

4949
import os
5050
import re
51-
# import os.path as osp
5251
from pathlib import Path
5352
import sys
5453

@@ -62,7 +61,6 @@
6261

6362
def get_icon(name):
6463
"""Return QIcon from icon name"""
65-
# return QIcon(osp.join(config.IMAGE_PATH, name))
6664
return QIcon(str(Path(config.IMAGE_PATH) / name))
6765

6866

@@ -157,11 +155,9 @@ def _process_mime_path(path, extlist):
157155
path = path[5:]
158156
else:
159157
path = path[7:]
160-
# if osp.exists(path):
161158
if Path(path).exists():
162159
if (
163160
extlist is None
164-
#or osp.splitext(path)[1] in extlist
165161
or Path(path).suffix in extlist
166162
):
167163
return path

0 commit comments

Comments
 (0)
0