Skip to content

Commit

Permalink
Fix six.moves imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Dec 4, 2024
1 parent 245aec5 commit 6fc03ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion acoustid/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import logging
import os.path
from typing import Any, Callable, Dict, List, Optional
from configparser import RawConfigParser

from six.moves.configparser import RawConfigParser
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.engine.url import URL
Expand Down
2 changes: 1 addition & 1 deletion acoustid/data/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union

from six.moves import urllib
import urllib.parse
from sqlalchemy import sql
from sqlalchemy.dialects.postgresql import insert

Expand Down
5 changes: 2 additions & 3 deletions acoustid/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import re
from logging import Handler

import six
from six.moves.urllib.parse import urlencode
from six.moves.urllib.request import urlopen
from urllib.parse import urlencode
from urllib.request import urlopen


def generate_api_key(length=10) -> str:
Expand Down
2 changes: 1 addition & 1 deletion acoustid/web/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import re

import six.moves.urllib.parse as urlparse
import urllib.parse as urlparse
from flask import abort, g, redirect, request, session, url_for

from acoustid.models import Account
Expand Down
2 changes: 1 addition & 1 deletion acoustid/web/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import random

import six.moves.urllib.request as urllib2
import urllib.request as urllib2
from flask import (
Blueprint,
current_app,
Expand Down

0 comments on commit 6fc03ed

Please sign in to comment.