From: Ben Darnell Date: Mon, 5 Sep 2011 21:00:51 +0000 (-0700) Subject: Remove unused variables (discovered by pyflakes) X-Git-Tag: v2.1.0~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c36e482d15288cf2958099feea861f0647314c01;p=thirdparty%2Ftornado.git Remove unused variables (discovered by pyflakes) --- diff --git a/tornado/auth.py b/tornado/auth.py index 720d5f32a..885e9cd3e 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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) diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 2135d44f7..4a22ac69f 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -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 diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py index 758f2f3f7..a98eb5448 100644 --- a/tornado/simple_httpclient.py +++ b/tornado/simple_httpclient.py @@ -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 diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index 9e674f01b..f6d7235ae 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -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 diff --git a/tornado/testing.py b/tornado/testing.py index 78cc5234d..0ad5bff4c 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -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