Skip to content

Commit ad8abfa

Browse files
committed
Support Google AppEngine, fix import error
GAE httplib implementation uses google.appengine.api.urlfetch
1 parent 8870f96 commit ad8abfa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

qiniu/rpc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# -*- coding: utf-8 -*-
2-
import httplib_chunk as httplib
2+
3+
import httplib
4+
5+
if not getattr(httplib, "_IMPLEMENTATION", False): # httplib._IMPLEMENTATION is "gae" on GAE
6+
import httplib_chunk as httplib
7+
38
import json
49
import cStringIO
510
import conf

0 commit comments

Comments
 (0)