mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Removed redundant bitand and bitor methods.
This commit is contained in:
parent
d9eb503c62
commit
d2aacd57dd
@ -415,17 +415,11 @@ class LexemeCombinable:
|
||||
# On Combinable, these are not implemented to reduce confusion with Q. In
|
||||
# this case we are actually (ab)using them to do logical combination so
|
||||
# it's consistent with other usage in Django.
|
||||
def bitand(self, other):
|
||||
return self._combine(other, self.BITAND, False)
|
||||
|
||||
def bitor(self, other):
|
||||
def __or__(self, other):
|
||||
return self._combine(other, self.BITOR, False)
|
||||
|
||||
def __or__(self, other):
|
||||
return self.bitor(other)
|
||||
|
||||
def __and__(self, other):
|
||||
return self.bitand(other)
|
||||
return self._combine(other, self.BITAND, False)
|
||||
|
||||
|
||||
class Lexeme(LexemeCombinable, Value):
|
||||
|
Loading…
Reference in New Issue
Block a user