Browse Source

minor doc changes..

[git-p4: depot-paths = "//depot/python/pypasn1/main/": change = 1833]
python2
John-Mark Gurney 8 years ago
parent
commit
ba77ad6e1f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      pasn1.py

+ 4
- 4
pasn1.py View File

@@ -1,9 +1,9 @@
#!/usr/bin/env python

# A Pure Python ASN.1 encoder/decoder w/ a calling interface in the spirit
# of pickle. It will automaticly do the correct thing if possible.
# of pickle.
#
# This uses a profile of ASN.1.
# It uses a profile of ASN.1.
#
# All lengths must be specified. That is that End-of-contents octets
# MUST not be used. The shorted form of length encoding MUST be used.
@@ -317,7 +317,7 @@ class ASN1Coder(object):
return r, end

def dumps(self, obj):
'''Convert obj into a string.'''
'''Convert obj into an array of bytes.'''

try:
tf = self._typemap[type(obj)]
@@ -364,7 +364,7 @@ class ASN1Coder(object):
return datetime.datetime.strptime(ts, fstr), end

def loads(self, data, pos=0, end=None, consume=False):
'''Load from data, starting at pos (option), and ending
'''Load from data, starting at pos (optional), and ending
at end (optional). If it is required to consume the
whole string (not the default), set consume to True, and
a ValueError will be raised if the string is not


Loading…
Cancel
Save