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 #!/usr/bin/env python


# A Pure Python ASN.1 encoder/decoder w/ a calling interface in the spirit # 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 # 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. # MUST not be used. The shorted form of length encoding MUST be used.
@@ -317,7 +317,7 @@ class ASN1Coder(object):
return r, end return r, end


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


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


def loads(self, data, pos=0, end=None, consume=False): 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 at end (optional). If it is required to consume the
whole string (not the default), set consume to True, and whole string (not the default), set consume to True, and
a ValueError will be raised if the string is not a ValueError will be raised if the string is not


Loading…
Cancel
Save