From b5bab2221ad88ad49962c402eecae418db6a9eba Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Wed, 24 Aug 2011 16:53:39 +0530 Subject: Reverts docstring quoting syntax. --- rsa/pem.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rsa/pem.py') diff --git a/rsa/pem.py b/rsa/pem.py index 5a37f6d..b1c3a0e 100644 --- a/rsa/pem.py +++ b/rsa/pem.py @@ -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) -- cgit v1.2.1