From c366ecf5c85c2797582bf79f7faab1d75b99a70e Mon Sep 17 00:00:00 2001 From: janonymous Date: Mon, 13 Jul 2015 00:07:13 +0530 Subject: [PATCH] Fix a minor python issue related with string.split Replacing string.split(value, ',') with value.split(','): the string.split() function was removed in Python 3 Change-Id: I9ed241a894ac698da33df75a774a56ae2824fadf --- test/unit/test_locale/test_locale.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/test_locale/test_locale.py b/test/unit/test_locale/test_locale.py index a0804ed0eb..7706f79871 100644 --- a/test/unit/test_locale/test_locale.py +++ b/test/unit/test_locale/test_locale.py @@ -17,7 +17,6 @@ import os import unittest -import string import sys import threading @@ -73,6 +72,6 @@ class TestTranslations(unittest.TestCase): if __name__ == "__main__": os.environ['LC_ALL'] = 'eo' os.environ['SWIFT_LOCALEDIR'] = os.path.dirname(__file__) - sys.path = string.split(sys.argv[1], ':') + sys.path = sys.argv[1].split(':') from swift import gettext_ as _ print _('test message')