~bigwhale/gwibber/follow-unfollow

« back to all changes in this revision

Viewing changes to gwibber/microblog/network.py

  • Committer: David Klasinc
  • Date: 2011-02-16 07:36:22 UTC
  • mfrom: (917.1.25 trunk)
  • Revision ID: bigwhale@lubica.net-20110216073622-6v2x424j6m1oaee9
Merged with the latest trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
import urllib, pycurl, json, StringIO
4
4
from util import log
5
 
from util import exceptions
6
5
 
7
6
try:
8
7
  import libproxy
60
59
      self.curl.perform()
61
60
    except pycurl.error, e:
62
61
      log.logger.error("Network failure - error: %d - %s", e[0], e[1])
63
 
  
 
62
 
64
63
  def get_json(self):
65
64
    try:
66
65
      return json.loads(self.get_string())