Skip to content

Commit

Permalink
Fix PEP8 import order rule violation bug on jwt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sabuhibrahim authored Jul 8, 2024
1 parent b87f5ee commit e72cd75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/jwt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import uuid
import sys
from datetime import timedelta, datetime, timezone

from jose import jwt, JWTError
from fastapi import Response
from sqlalchemy.ext.asyncio import AsyncSession
Expand All @@ -8,7 +10,6 @@
from src.schemas import User, TokenPair, JwtTokenSchema
from src.exceptions import AuthFailedException
from src.models import BlackListToken
from sys import version_info


REFRESH_COOKIE_NAME = "refresh"
Expand All @@ -18,7 +19,7 @@
JTI = "jti"

def _get_utc_now():
if version_info >= (3, 2):
if sys.version_info >= (3, 2):
# For Python 3.2 and later
current_utc_time = datetime.now(timezone.utc)
else:
Expand Down

0 comments on commit e72cd75

Please sign in to comment.