Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv28092 Modified Files: test_pep277.py Log Message: Use escaped Unicode literals, according to PEP 8. Index: test_pep277.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pep277.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_pep277.py 5 Oct 2002 17:54:56 -0000 1.2 --- test_pep277.py 7 Oct 2002 17:27:15 -0000 1.3 *************** *** 1,3 **** - # -*- coding: utf-8 -*- # Test the Unicode versions of normal file functions # open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir --- 1,2 ---- *************** *** 10,22 **** filenames = [ ! "abc", ! unicode("ascii","utf-8"), ! unicode("GrüÃ-Gott","utf-8"), ! unicode("Îειά-ÏαÏ","utf-8"), ! unicode("ÐдÑавÑÑвÑйÑе","utf-8"), ! unicode("ã«ã½ã","utf-8"), ! unicode("×שקצץס","utf-8"), ! unicode("æ¨æ©æ«","utf-8"), ! unicode("æ¨×©ãдÎÃ","utf-8"), ] --- 9,21 ---- filenames = [ ! 'abc', ! u'ascii', ! u'Gr\xfc\xdf-Gott', ! u'\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2', ! u'\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435', ! u'\u306b\u307d\u3093', ! u'\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1', ! u'\u66e8\u66e9\u66eb', ! u'\u66e8\u05e9\u3093\u0434\u0393\xdf', ] *************** *** 93,98 **** def test_directory(self): ! dirname = unicode(os.path.join(TESTFN,"GrüÃ-æ¨æ©æ«"),"utf-8") ! filename = unicode("Ã-æ¨æ©æ«","utf-8") oldwd = os.getcwd() os.mkdir(dirname) --- 92,97 ---- def test_directory(self): ! dirname = os.path.join(TESTFN,u'Gr\xfc\xdf-\u66e8\u66e9\u66eb') ! filename = u'\xdf-\u66e8\u66e9\u66eb' oldwd = os.getcwd() os.mkdir(dirname)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4