Created
August 27, 2015 13:07
-
-
Save hirokazumiyaji/01eb0d8619a85cc71a00 to your computer and use it in GitHub Desktop.
ujson -> json patch when pypy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def patch_json(): | |
try: | |
import __pypy__ | |
except ImportError: | |
pass | |
else: | |
import json | |
sys.modules['ujson'] = json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment