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
This commit is contained in:
parent
2f9053b628
commit
c366ecf5c8
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user