py2ls 0.2.4.10.3__py3-none-any.whl → 0.2.4.10.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
py2ls/ips.py
CHANGED
@@ -7008,13 +7008,17 @@ def use_pd(
|
|
7008
7008
|
verbose=True,
|
7009
7009
|
dir_json="/Users/macjianfeng/Dropbox/github/python/py2ls/py2ls/data/usages_pd.json",
|
7010
7010
|
):
|
7011
|
-
|
7012
|
-
|
7013
|
-
|
7014
|
-
|
7015
|
-
|
7016
|
-
|
7017
|
-
i_
|
7018
|
-
|
7019
|
-
|
7020
|
-
|
7011
|
+
try:
|
7012
|
+
default_settings = fload(dir_json, output="json")
|
7013
|
+
valid_kinds = list(default_settings.keys())
|
7014
|
+
kind = strcmp(func_name, valid_kinds)[0]
|
7015
|
+
usage = default_settings[kind]
|
7016
|
+
if verbose:
|
7017
|
+
for i, i_ in enumerate(ssplit(usage, by=",")):
|
7018
|
+
i_ = i_.replace("=", "\t= ") + ","
|
7019
|
+
print(i_) if i == 0 else print("\t", i_)
|
7020
|
+
else:
|
7021
|
+
print(usage)
|
7022
|
+
except Exception as e:
|
7023
|
+
if verbose:
|
7024
|
+
print(e)
|