Skip to content
Myr

Merge pull request #2064 from mgeisler/simplejson-syntax-error-import

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents ddd748e, 3b0fcb6 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • compat: handle SyntaxError when importing simplejson

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/compat.py+3 added-1 removed
73 unmodified lines
74is_solaris = ('solar==' in str(sys.platform).lower()) # Complete guess.7576try:77 import simplejson as json78except ImportError:78except (ImportError, SyntaxError):79 # simplejson does not support Python 3.2, it thows a SyntaxError80 # because of u'...' Unicode literals.81 import json8283# ---------84# Specifics
33 unmodified lines