(py-dump-help-string): Use documentation-property to get docstring.
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 357074e..40d805d 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1789,8 +1789,7 @@
(where-is-internal func py-mode-map)
", "))))
((equal funckind "v") ; variable
- (setq funcdoc (substitute-command-keys
- (get func 'variable-documentation))
+ (setq funcdoc (documentation-property func 'variable-documentation)
keys (if (assq func locals)
(concat
"Local/Global values: "