Skip to content

Commit 0cb6e62

Browse files
[py] Improve comment about using importlib_resources
When the python client support python 3.9 we should move to importlib_resources. Not using the package now as not wanting extra dependencies.
1 parent 2036e8f commit 0cb6e62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

py/selenium/webdriver/remote/webelement.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131

3232
from six import add_metaclass
3333

34-
35-
# TODO: when dropping Python 2.7, use built in importlib_resources.files
36-
# not relying on __package__ here as it can be `None` in some situations (see #4558)
34+
# TODO: When moving to supporting python 3.9 as the minimum version we can
35+
# use built in importlib_resources.files.
3736
_pkg = '.'.join(__name__.split('.')[:-1])
3837
getAttribute_js = pkgutil.get_data(_pkg, 'getAttribute.js').decode('utf8')
3938
isDisplayed_js = pkgutil.get_data(_pkg, 'isDisplayed.js').decode('utf8')

0 commit comments

Comments
 (0)