From c2327f2d474f6311dab4a1ff85ddc91601941082 Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Thu, 15 Apr 2010 18:00:51 -0400 Subject: Common _bytes & _unicode names --- tests/common.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/common.py b/tests/common.py index ff30ec1..bd7951c 100644 --- a/tests/common.py +++ b/tests/common.py @@ -48,3 +48,13 @@ def importModule(module, directory, name=None): raise AssertionError('module %s imported from wrong location. Expected %s, got %s' % ( module, expected, current)) return obj + +try: + _bytes = bytes +except NameError: + _bytes = str + +try: + _unicode = unicode +except NameError: + _unicode = str -- cgit