Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shalevr committed Dec 28, 2022
1 parent 06dadb7 commit 2e0961f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@
import urllib
from timeit import default_timer
from typing import Optional, Union
from urllib import request
from urllib.parse import urlencode

import httpretty

from opentelemetry.instrumentation.urllib import ( # pylint: disable=no-name-in-module,import-error
URLLibInstrumentor,
)
from opentelemetry.semconv.metrics import MetricInstruments
from opentelemetry.sdk.metrics._internal.point import Metric
from opentelemetry.sdk.metrics.export import (
HistogramDataPoint,
NumberDataPoint,
)
from opentelemetry.semconv.metrics import MetricInstruments
from opentelemetry.test.test_base import TestBase


Expand Down Expand Up @@ -172,7 +171,7 @@ def test_basic_metric(self):

def test_basic_metric_request_not_empty(self):
data = {"header1": "value1", "header2": "value2"}
data_encoded = urllib.parse.urlencode(data).encode()
data_encoded = urlencode(data).encode()

start_time = default_timer()
result = urllib.request.urlopen(self.URL_POST, data=data_encoded)
Expand Down

0 comments on commit 2e0961f

Please sign in to comment.