diff --git a/byexample/cfg.py b/byexample/cfg.py index 711a4475..47706f66 100644 --- a/byexample/cfg.py +++ b/byexample/cfg.py @@ -1,9 +1,10 @@ from __future__ import unicode_literals from .common import transfer_constants import collections +import collections.abc -class Config(collections.Mapping): +class Config(collections.abc.Mapping): ''' An immutable configuration object. Once the configuration was loaded, this object should be diff --git a/byexample/init.py b/byexample/init.py index 91b188ec..578ed21d 100644 --- a/byexample/init.py +++ b/byexample/init.py @@ -1,5 +1,5 @@ from __future__ import unicode_literals -import sys, pkgutil, inspect, pprint, os, collections, operator +import sys, pkgutil, inspect, pprint, os, operator from itertools import chain as chain_iters diff --git a/byexample/options.py b/byexample/options.py index 27e97eaf..8cc9d619 100644 --- a/byexample/options.py +++ b/byexample/options.py @@ -1,8 +1,8 @@ from __future__ import unicode_literals -import collections, argparse, shlex, pprint, sys +import collections.abc, argparse, shlex, pprint, sys -class Options(collections.MutableMapping): +class Options(collections.abc.MutableMapping): r''' The execution of the examples can be modified by configuring different options.