summaryrefslogtreecommitdiff
path: root/simplejson/__init__.py
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2008-03-23 09:43:55 +0000
committerBob Ippolito <bob@redivi.com>2008-03-23 09:43:55 +0000
commit609133a6f03397e5e6fe8e688438e548379bf2af (patch)
tree70acc4c17bf547021e8ae49cc542a2e21da11484 /simplejson/__init__.py
parent95dd20b6b733197d8a0443af9fc277d7a31eb335 (diff)
downloadsimplejson-609133a6f03397e5e6fe8e688438e548379bf2af.tar.gz
surrogate pair decoding
git-svn-id: http://simplejson.googlecode.com/svn/trunk@72 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'simplejson/__init__.py')
-rw-r--r--simplejson/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/simplejson/__init__.py b/simplejson/__init__.py
index 9e8553e..e39a110 100644
--- a/simplejson/__init__.py
+++ b/simplejson/__init__.py
@@ -105,8 +105,12 @@ __all__ = [
'JSONDecoder', 'JSONEncoder',
]
-from simplejson.decoder import JSONDecoder
-from simplejson.encoder import JSONEncoder
+if __name__ == '__main__':
+ from simplejson.decoder import JSONDecoder
+ from simplejson.encoder import JSONEncoder
+else:
+ from decoder import JSONDecoder
+ from encoder import JSONEncoder
_default_encoder = JSONEncoder(
skipkeys=False,