diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-24 16:53:39 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-24 16:53:39 +0530 |
commit | b5bab2221ad88ad49962c402eecae418db6a9eba (patch) | |
tree | 0d752cc34ec7b64a4b1f70caabee05b733157cf6 /rsa/pem.py | |
parent | 245952eba1d073e7b92e7b384829cbb0386a8134 (diff) | |
download | rsa-git-b5bab2221ad88ad49962c402eecae418db6a9eba.tar.gz |
Reverts docstring quoting syntax.
Diffstat (limited to 'rsa/pem.py')
-rw-r--r-- | rsa/pem.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -14,15 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Functions that load and write PEM-encoded files.""" +'''Functions that load and write PEM-encoded files.''' import base64 from rsa._compat import b, is_bytes def _markers(pem_marker): - """ + ''' Returns the start and end PEM markers - """ + ''' if is_bytes(pem_marker): pem_marker = pem_marker.decode('utf-8') @@ -31,7 +31,7 @@ def _markers(pem_marker): b('-----END %s-----' % pem_marker)) def load_pem(contents, pem_marker): - """Loads a PEM file. + '''Loads a PEM file. @param contents: the contents of the file to interpret @param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY' @@ -43,7 +43,7 @@ def load_pem(contents, pem_marker): @raise ValueError: when the content is invalid, for example when the start marker cannot be found. - """ + ''' (pem_start, pem_end) = _markers(pem_marker) @@ -93,7 +93,7 @@ def load_pem(contents, pem_marker): def save_pem(contents, pem_marker): - """Saves a PEM file. + '''Saves a PEM file. @param contents: the contents to encode in PEM format @param pem_marker: the marker of the PEM content, such as 'RSA PRIVATE KEY' @@ -102,7 +102,7 @@ def save_pem(contents, pem_marker): @return the base64-encoded content between the start and end markers. - """ + ''' (pem_start, pem_end) = _markers(pem_marker) |