Skip to content

Commit

Permalink
adapt other imports of urllib
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Feb 18, 2020
1 parent 7c62215 commit acce612
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aiida/cmdline/commands/cmd_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# pylint: disable=broad-except,too-many-arguments,too-many-locals,too-many-branches
from enum import Enum
import traceback
import urllib
import urllib.request
import click

from aiida.cmdline.commands.cmd_verdi import verdi
Expand Down
2 changes: 1 addition & 1 deletion aiida/manage/configuration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
###########################################################################
"""Module that defines methods required to setup a new AiiDA instance."""
import os
import urllib
import urllib.parse

import click

Expand Down
2 changes: 1 addition & 1 deletion aiida/restapi/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# For further information please visit http://www.aiida.net #
###########################################################################
""" Util methods """
import urllib
import urllib.parse
from datetime import datetime, timedelta

from flask import jsonify
Expand Down
3 changes: 2 additions & 1 deletion aiida/tools/importexport/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
""" Utility functions for import/export of AiiDA entities """
# pylint: disable=inconsistent-return-statements,too-many-branches,too-many-return-statements
# pylint: disable=too-many-nested-blocks,too-many-locals
import urllib
import urllib.request
import urllib.parse
from html.parser import HTMLParser

from aiida.tools.importexport.common.config import (
Expand Down
4 changes: 1 addition & 3 deletions tests/tools/dbimporters/test_icsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
"""
Tests for IcsdDbImporter
"""
import urllib

import urllib.request
import pytest

from aiida.backends.testbase import AiidaTestCase

from aiida.tools.dbimporters.plugins import icsd


Expand Down

0 comments on commit acce612

Please sign in to comment.