]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove unused variables (discovered by pyflakes)
authorBen Darnell <ben@bendarnell.com>
Mon, 5 Sep 2011 21:00:51 +0000 (14:00 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 5 Sep 2011 21:00:51 +0000 (14:00 -0700)
tornado/auth.py
tornado/httpserver.py
tornado/simple_httpclient.py
tornado/test/simple_httpclient_test.py
tornado/testing.py

index 720d5f32a73ae049cb6db08c1a782e2fc7657fda..885e9cd3e1174d80108f833dd3341c2f5f1ad089 100644 (file)
@@ -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)
index 2135d44f753eee94bc2cd49a16807083ad215bbe..4a22ac69f538167a6e8fe3a48468138981950f8c 100644 (file)
@@ -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
index 758f2f3f78109372dd66b0d165f83d5bea94c2a5..a98eb54484bda91ef34f6efd7788b7a3b4f2d31d 100644 (file)
@@ -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
index 9e674f01bed457e5daaa0162eaf75680cdfcc1fa..f6d7235ae5b562079f199cb30ae5b3199cbaa6c4 100644 (file)
@@ -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
 
index 78cc5234d14c6f7be85ee45fbd4337b599432020..0ad5bff4cd3c7c12de9cfd4f064f988da3f4c0cd 100644 (file)
@@ -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