Skip to content

Commit

Permalink
Fix apparently test which is apparently failing on some machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
philikon committed Sep 1, 2004
1 parent 6219dc1 commit db09a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmlrpc/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,15 @@ Unfortunately, `xmlrpclib` does not support Python 2.3's new
`datetime.datetime` class (it should be made to, really). DateTime
values need to be encoded as `xmlrpclib.DateTime` instances:

>>> import xmlrpclib, time
>>> import xmlrpclib

>>> class DateTimeDemo:
... def __init__(self, context, request):
... self.context = context
... self.request = request
...
... def epoch(self):
... return xmlrpclib.DateTime(1)
... return xmlrpclib.DateTime("19700101T01:00:01")

Now we'll register it as a view:

Expand Down

0 comments on commit db09a7b

Please sign in to comment.