Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1387

json_util._HAS_OBJECT_PAIRS_HOOK check is too simplistic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.6
    • None
    • None

    Description

      We currently set _HAS_OBJECT_PAIRS_HOOK to True if we can import simplejson. That's not good enough. We also need to check the version of simplejson to ensure it actually supports object_pairs_hook.

      This problem was discovered with the Evergreen nightly builds using machines with ancient versions of simplejson.

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: