From 4c938a92f792651eb1d7f8014ae5c7f46cd270c3 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 16:33:12 +0900 Subject: [PATCH 1/2] remove ordereddict dependency, issue #55 --- requirements.txt | 1 - xbrl/xbrl.py | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1c3b798..3037985 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,5 @@ pytest==2.8.3 pep8==1.6.2 marshmallow>=2.15.1 beautifulsoup4==4.4.1 -ordereddict==1.1 lxml==4.6.5 six==1.9.0 diff --git a/xbrl/xbrl.py b/xbrl/xbrl.py index b93f8e8..946f16b 100644 --- a/xbrl/xbrl.py +++ b/xbrl/xbrl.py @@ -4,7 +4,7 @@ import re from marshmallow import Schema, fields import datetime -import collections +import collections as odict import six import logging @@ -13,11 +13,6 @@ except ImportError: from io import StringIO -if 'OrderedDict' in dir(collections): - odict = collections -else: - import ordereddict as odict - def soup_maker(fh): """ Takes a file handler returns BeautifulSoup""" From cc20846b06bef80f125cb874fabede5362a471b3 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 17:08:05 +0900 Subject: [PATCH 2/2] update: travis CI --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 786a217..f7bdf5a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,10 @@ sudo: false language: python python: - - "3.4" - - "3.3" + - "3.11" + - "3.10" + - "3.9" - "2.7" - - "2.6" addons: apt: