Skip to content

Commit

Permalink
remove invalid code
Browse files Browse the repository at this point in the history
  • Loading branch information
marcohong committed Dec 7, 2020
1 parent 1199d6b commit 29ff2d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xform/httputil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import threading
import abc
from typing import Any, Optional

from xform.adapters import BaseRequest
from xform.adapters.tornado import TornadoRequest
Expand All @@ -14,11 +12,11 @@ class HttpRequest:
_request: BaseRequest = None

@classmethod
def configure(cls, *args, **kwargs) -> 'HttpRequest':
def configure(cls) -> 'HttpRequest':
if not hasattr(HttpRequest, '_instance'):
with HttpRequest._instance_lock:
if not hasattr(HttpRequest, '_instance'):
HttpRequest._instance = HttpRequest(*args, **kwargs)
HttpRequest._instance = HttpRequest()
return HttpRequest._instance

def set_request_proxy(self, request: BaseRequest):
Expand Down

0 comments on commit 29ff2d9

Please sign in to comment.