Remove unused variables (discovered by pyflakes)
This commit is contained in:
parent
5997f411d5
commit
c36e482d15
|
@ -329,7 +329,7 @@ class OAuthMixin(object):
|
|||
return
|
||||
|
||||
access_token = _oauth_parse_response(response.body)
|
||||
user = self._oauth_get_user(access_token, self.async_callback(
|
||||
self._oauth_get_user(access_token, self.async_callback(
|
||||
self._on_oauth_get_user, access_token, callback))
|
||||
|
||||
def _oauth_get_user(self, access_token, callback):
|
||||
|
@ -499,7 +499,6 @@ class TwitterMixin(OAuthMixin):
|
|||
all_args = {}
|
||||
all_args.update(args)
|
||||
all_args.update(post_args or {})
|
||||
consumer_token = self._oauth_consumer_token()
|
||||
method = "POST" if post_args is not None else "GET"
|
||||
oauth = self._oauth_request_parameters(
|
||||
url, access_token, all_args, method=method)
|
||||
|
@ -622,7 +621,6 @@ class FriendFeedMixin(OAuthMixin):
|
|||
all_args = {}
|
||||
all_args.update(args)
|
||||
all_args.update(post_args or {})
|
||||
consumer_token = self._oauth_consumer_token()
|
||||
method = "POST" if post_args is not None else "GET"
|
||||
oauth = self._oauth_request_parameters(
|
||||
url, access_token, all_args, method=method)
|
||||
|
|
|
@ -27,7 +27,6 @@ This module also defines the `HTTPRequest` class which is exposed via
|
|||
import Cookie
|
||||
import errno
|
||||
import logging
|
||||
import os
|
||||
import socket
|
||||
import time
|
||||
import urlparse
|
||||
|
|
|
@ -4,7 +4,6 @@ from __future__ import with_statement
|
|||
from tornado.escape import utf8, _unicode, native_str
|
||||
from tornado.httpclient import HTTPRequest, HTTPResponse, HTTPError, AsyncHTTPClient, main
|
||||
from tornado.httputil import HTTPHeaders
|
||||
from tornado.ioloop import IOLoop
|
||||
from tornado.iostream import IOStream, SSLIOStream
|
||||
from tornado import stack_context
|
||||
from tornado.util import b
|
||||
|
|
|
@ -5,11 +5,10 @@ import gzip
|
|||
import logging
|
||||
import socket
|
||||
|
||||
from contextlib import closing
|
||||
from tornado.ioloop import IOLoop
|
||||
from tornado.simple_httpclient import SimpleAsyncHTTPClient, _DEFAULT_CA_CERTS
|
||||
from tornado.test.httpclient_test import HTTPClientCommonTestCase, ChunkHandler, CountdownHandler, HelloWorldHandler
|
||||
from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase, get_unused_port
|
||||
from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase
|
||||
from tornado.util import b
|
||||
from tornado.web import RequestHandler, Application, asynchronous, url
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ from tornado.httpserver import HTTPServer
|
|||
from tornado.stack_context import StackContext, NullContext
|
||||
import contextlib
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import unittest
|
||||
|
|
Loading…
Reference in New Issue