From b33c7533dfa2a0a742da471fa7787db98aa0c581 Mon Sep 17 00:00:00 2001
From: Matt Martz <matt@sivel.net>
Date: Tue, 2 May 2017 11:08:32 -0500
Subject: [PATCH] flake8 fixes

---
 speedtest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/speedtest.py b/speedtest.py
index ad7dbb7..0053237 100755
--- a/speedtest.py
+++ b/speedtest.py
@@ -448,7 +448,7 @@ class SpeedtestHTTPSHandler(AbstractHTTPHandler):
             _build_connection(
                 SpeedtestHTTPSConnection,
                 self.source_address,
-                timeout,
+                self.timeout,
                 context=self._context,
             ),
             req
@@ -840,7 +840,7 @@ class SpeedtestResults(object):
         request = build_request('://www.speedtest.net/api/api.php',
                                 data='&'.join(api_data).encode(),
                                 headers=headers)
-        f, e = catch_request(request, opener=_self.opener)
+        f, e = catch_request(request, opener=self._opener)
         if e:
             raise ShareResultsConnectFailure(e)