diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2015-03-15 15:49:33 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2015-03-15 15:49:33 -0400 |
commit | 130cd0ea0d9db22fbe44d830730bb00dc37d6185 (patch) | |
tree | 4832ee4240f4eeb98b7160a3d345af3ff12b04dd | |
parent | 46a092529bdd38313c64bd01d6866ef64477ec81 (diff) | |
download | pyopenssl-130cd0ea0d9db22fbe44d830730bb00dc37d6185.tar.gz |
Give this new top-level function a docstring.
-rw-r--r-- | OpenSSL/_util.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ lib = binding.lib 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)) |