Empty WriteConcern is truthy in Python 2

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • 3.7
    • Affects Version/s: 3.4
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The WriteConcern class acquired a __bool__ operator in PYTHON-1101. The operator is true if and only if the write concern document is non-empty. But in Python 2 the operator must be called __nonzero__.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: