コード例 #1
0
ファイル: size.py プロジェクト: cgwalters/blivet
 def __div__(self, other, context=None):
     if six.PY2:
         # This still needs to be ignored by pylint, because it will get
         # through the above guard.
         return Size(Decimal.__div__(self, other))   # pylint: disable=no-member
     else:
         raise AttributeError
コード例 #2
0
 def __div__(self, other, context=None):
     if six.PY2:
         # This still needs to be ignored by pylint, because it will get
         # through the above guard.
         return Size(Decimal.__div__(self, other))  # pylint: disable=no-member
     else:
         raise AttributeError
コード例 #3
0
ファイル: money_maker.py プロジェクト: adilhi/django-shop
 def __div__(self, other, context=None):
     other = self._assert_dividable(other)
     amount = Decimal.__div__(self, other)
     return self.__class__(amount)
コード例 #4
0
ファイル: size.py プロジェクト: ryanlerch/blivet
 def __div__(self, other, context=None):
     return Size(Decimal.__div__(self, other, context=context))
コード例 #5
0
ファイル: exacttiming.py プロジェクト: danielbair/aeneas
 def __div__(self, other, context=None):
     if PY2:
         return TimeValue(Decimal.__div__(self, other, context))
     return TimeValue(Decimal.__div__(self, other))
コード例 #6
0
 def __div__(self, other, context=None):
     return Size(bytes=Decimal.__div__(self, other, context=context))
コード例 #7
0
 def __div__(self, other, context=None):
     other = self._assert_dividable(other)
     amount = Decimal.__div__(self, other)
     return self.__class__(amount)
コード例 #8
0
 def __div__(self, other, context=None):
     if PY2:
         return TimeValue(Decimal.__div__(self, other, context))
     return TimeValue(Decimal.__div__(self, other))