Update mongo pretty printer to be compatible with more versions of python

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some python (such as ones in our current toolchain) do not care for this BSONObject pretty printing code: https://github.com/mongodb/mongo/blob/d963ad9dcca8258434e955891cbeccac7aaf3ad4/buildscripts/gdb/mongo_printers.py#L124-L126

      (gdb) print _request->body
      $3 = unowned BSONObj 865 bytes @ 0x7f068fe3489dPython Exception <type 'exceptions.TypeError'> unbound method decode() must be called with BSON instance as first argument (got str instance instead): 
      

              Assignee:
              Daniel Gottlieb (Inactive)
              Reporter:
              Daniel Gottlieb (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: