/usr/share/pyshared/mx/DateTime/mxDateTime/testrichard.py is in python-egenix-mxdatetime 3.2.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from mx.DateTime import ISO
class AnyClass:
pass
date = ISO.ParseDateTime('2002-01-01 00:00:00')
rubish = AnyClass()
if date == rubish: print "Oh Dear"
else: print "hurrah!"
class AnyClass:
def __coerce__(self, other):
print 'coerce %s and %s' % (repr(self), repr(other))
print date + rubish
#print float(rubish)
|