Skip to content

Commit

Permalink
Closes #166: Remove six and _internal/compat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
reece committed Dec 17, 2019
1 parent 5be985c commit b5d4e84
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 32 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Expand Up @@ -39,7 +39,6 @@ install_requires =
lxml
pytz
requests
six
setup_requires =
pytest-runner
setuptools_scm
Expand Down
25 changes: 0 additions & 25 deletions src/eutils/_internal/compat.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/eutils/_internal/queryservice.py
Expand Up @@ -27,14 +27,14 @@
import hashlib
import logging
import os
import pickle
import time

import lxml.etree
import requests

from .sqlitecache import SQLiteCache
from .exceptions import EutilsRequestError, EutilsNCBIError
from .compat import pickle


_logger = logging.getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions src/eutils/_internal/sqlitecache.py
Expand Up @@ -8,11 +8,10 @@

import logging
import os
import pickle
import sqlite3
import zlib

from .compat import pickle


def key_to(obj):
return pickle.dumps(obj)
Expand Down
4 changes: 1 addition & 3 deletions tests/test_eutils_queryservice.py
Expand Up @@ -12,16 +12,14 @@
from lxml import etree
from mock import patch, MagicMock
import pytest
import six
import vcr

from eutils._internal.queryservice import QueryService
from eutils._internal.exceptions import EutilsNCBIError, EutilsRequestError


def assert_in_xml(xml, item):
if six.PY3 and isinstance(xml, six.binary_type):
xml = xml.decode()
xml = xml.decode()
assert item in xml


Expand Down

0 comments on commit b5d4e84

Please sign in to comment.