Skip to content

Commit a975e5d

Browse files
mdesmethashhar
authored andcommitted
Avoid name clash with datetime time
1 parent 2e272a0 commit a975e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trino/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
import random
4040
import re
4141
import threading
42-
import time
4342
import urllib.parse
4443
from datetime import datetime, timedelta, timezone
4544
from decimal import Decimal
45+
from time import sleep
4646
from typing import Any, Dict, List, Optional, Tuple, Union
4747

4848
import pytz
@@ -295,7 +295,7 @@ def __init__(
295295

296296
def retry(self, func, args, kwargs, err, attempt):
297297
delay = self._get_delay(attempt)
298-
time.sleep(delay)
298+
sleep(delay)
299299

300300

301301
class TrinoRequest(object):

0 commit comments

Comments
 (0)