From fcf8e2a8e24e1338f8eebd438fa4df796c0ff65b Mon Sep 17 00:00:00 2001 From: Prodesire Date: Fri, 27 Oct 2017 20:34:44 +0800 Subject: [PATCH] rename compatibility to compat --- pydu/{compatibility.py => compat.py} | 0 pydu/string.py | 2 +- tests/{test_compatibility.py => test_compat.py} | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename pydu/{compatibility.py => compat.py} (100%) rename tests/{test_compatibility.py => test_compat.py} (70%) diff --git a/pydu/compatibility.py b/pydu/compat.py similarity index 100% rename from pydu/compatibility.py rename to pydu/compat.py diff --git a/pydu/string.py b/pydu/string.py index 283f0ab..bce6959 100644 --- a/pydu/string.py +++ b/pydu/string.py @@ -1,5 +1,5 @@ # coding: utf-8 -from pydu.compatibility import PY2, text_type, imap, is_iter +from pydu.compat import PY2, text_type, imap, is_iter def safeunicode(obj, encoding='utf-8'): diff --git a/tests/test_compatibility.py b/tests/test_compat.py similarity index 70% rename from tests/test_compatibility.py rename to tests/test_compat.py index 268d690..7568406 100644 --- a/tests/test_compatibility.py +++ b/tests/test_compat.py @@ -1,5 +1,5 @@ -from pydu.compatibility import (iterkeys, itervalues, iteritems, is_iter, - text_type, string_types, numeric_types) +from pydu.compat import (iterkeys, itervalues, iteritems, is_iter, + text_type, string_types, numeric_types) def test_iter(): @@ -27,8 +27,8 @@ def test_types(): def test_urljoin(): - from pydu.compatibility import urljoin + from pydu.compat import urljoin def test_imap(): - from pydu.compatibility import imap + from pydu.compat import imap