commit | 130cd0ea0d9db22fbe44d830730bb00dc37d6185 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Sun Mar 15 15:49:33 2015 -0400 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Sun Mar 15 15:49:33 2015 -0400 |
tree | 4832ee4240f4eeb98b7160a3d345af3ff12b04dd | |
parent | 46a092529bdd38313c64bd01d6866ef64477ec81 [diff] [blame] |
Give this new top-level function a docstring.
diff --git a/OpenSSL/_util.py b/OpenSSL/_util.py index cf13666..de292be 100644 --- a/OpenSSL/_util.py +++ b/OpenSSL/_util.py
@@ -8,6 +8,13 @@ def text(charp): + """ + Get a native string type representing of the given CFFI ``char*`` object. + + :param charp: A C-style string represented using CFFI. + + :return: :class:`str` + """ return native(ffi.string(charp))