1010import pluggy
1111from pluggy ._hooks import HookImpl
1212
13- from pylsp import _utils , hookspecs , uris , PYLSP
13+ from pylsp import utils , hookspecs , uris , PYLSP
1414
1515# See compatibility note on `group` keyword:
1616# https://docs.python.org/3/library/importlib.metadata.html#entry-points
@@ -94,11 +94,11 @@ def __init__(self, root_uri, init_opts, process_id, capabilities):
9494 log .info ("Loaded pylsp plugin %s from %s" , name , plugin )
9595
9696 for plugin_conf in self ._pm .hook .pylsp_settings (config = self ):
97- self ._plugin_settings = _utils .merge_dicts (
97+ self ._plugin_settings = utils .merge_dicts (
9898 self ._plugin_settings , plugin_conf
9999 )
100100
101- self ._plugin_settings = _utils .merge_dicts (
101+ self ._plugin_settings = utils .merge_dicts (
102102 self ._plugin_settings , self ._init_opts .get ("pylsp" , {})
103103 )
104104
@@ -144,10 +144,10 @@ def settings(self, document_path=None):
144144 sources = self ._settings .get ("configurationSources" , DEFAULT_CONFIG_SOURCES )
145145
146146 # Plugin configuration
147- settings = _utils .merge_dicts (settings , self ._plugin_settings )
147+ settings = utils .merge_dicts (settings , self ._plugin_settings )
148148
149149 # LSP configuration
150- settings = _utils .merge_dicts (settings , self ._settings )
150+ settings = utils .merge_dicts (settings , self ._settings )
151151
152152 # User configuration
153153 for source_name in reversed (sources ):
@@ -158,7 +158,7 @@ def settings(self, document_path=None):
158158 log .debug (
159159 "Got user config from %s: %s" , source .__class__ .__name__ , source_conf
160160 )
161- settings = _utils .merge_dicts (settings , source_conf )
161+ settings = utils .merge_dicts (settings , source_conf )
162162
163163 # Project configuration
164164 for source_name in reversed (sources ):
@@ -169,15 +169,15 @@ def settings(self, document_path=None):
169169 log .debug (
170170 "Got project config from %s: %s" , source .__class__ .__name__ , source_conf
171171 )
172- settings = _utils .merge_dicts (settings , source_conf )
172+ settings = utils .merge_dicts (settings , source_conf )
173173
174174 log .debug ("With configuration: %s" , settings )
175175
176176 return settings
177177
178178 def find_parents (self , path , names ):
179179 root_path = uris .to_fs_path (self ._root_uri )
180- return _utils .find_parents (root_path , path , names )
180+ return utils .find_parents (root_path , path , names )
181181
182182 def plugin_settings (self , plugin , document_path = None ):
183183 return (
0 commit comments