mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: fixes for docx input
This commit is contained in:
parent
7e303f6503
commit
c1333ea71b
@ -11,8 +11,29 @@ from collections import OrderedDict
|
|||||||
from polyglot.builtins import iteritems
|
from polyglot.builtins import iteritems
|
||||||
|
|
||||||
|
|
||||||
class Inherit:
|
class Inherit(object):
|
||||||
pass
|
|
||||||
|
def __eq__(self, other):
|
||||||
|
return other is self
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return id(self)
|
||||||
|
|
||||||
|
def __lt__(self, other):
|
||||||
|
return False
|
||||||
|
|
||||||
|
def __gt__(self, other):
|
||||||
|
return other is not self
|
||||||
|
|
||||||
|
def __ge__(self, other):
|
||||||
|
if self is other:
|
||||||
|
return True
|
||||||
|
return True
|
||||||
|
|
||||||
|
def __le__(self, other):
|
||||||
|
if self is other:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
inherit = Inherit()
|
inherit = Inherit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user