summaryrefslogtreecommitdiff
path: root/rsa/pem.py
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-24 16:53:39 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-24 16:53:39 +0530
commitb5bab2221ad88ad49962c402eecae418db6a9eba (patch)
tree0d752cc34ec7b64a4b1f70caabee05b733157cf6 /rsa/pem.py
parent245952eba1d073e7b92e7b384829cbb0386a8134 (diff)
downloadrsa-git-b5bab2221ad88ad49962c402eecae418db6a9eba.tar.gz
Reverts docstring quoting syntax.
Diffstat (limited to 'rsa/pem.py')
-rw-r--r--rsa/pem.py14
1 files changed, 7 insertions, 7 deletions
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)