mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Typo repair; added some comments and horizontal whitespace.
This commit is contained in:
		
							parent
							
								
									da6081fccb
								
							
						
					
					
						commit
						c6c5ece7e2
					
				
					 1 changed files with 10 additions and 9 deletions
				
			
		| 
						 | 
					@ -130,17 +130,18 @@ def fcmp(x, y): # fuzzy comparison function
 | 
				
			||||||
        if isinstance('', unicode):
 | 
					        if isinstance('', unicode):
 | 
				
			||||||
            # python -U
 | 
					            # python -U
 | 
				
			||||||
            # XXX perhaps unicode() should accept Unicode strings?
 | 
					            # XXX perhaps unicode() should accept Unicode strings?
 | 
				
			||||||
            TESTFN_UNICODE="@test-\xe0\xf2"
 | 
					            TESTFN_UNICODE = "@test-\xe0\xf2"
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            TESTFN_UNICODE=unicode("@test-\xe0\xf2", "latin-1") # 2 latin characters.
 | 
					            # 2 latin characters.
 | 
				
			||||||
        TESTFN_ENCODING=sys.getfilesystemencoding()
 | 
					            TESTFN_UNICODE = unicode("@test-\xe0\xf2", "latin-1")
 | 
				
			||||||
 | 
					        TESTFN_ENCODING = sys.getfilesystemencoding()
 | 
				
			||||||
        # TESTFN_UNICODE_UNENCODEABLE is a filename that should *not* be
 | 
					        # TESTFN_UNICODE_UNENCODEABLE is a filename that should *not* be
 | 
				
			||||||
        # able to be encoded by *either* the default or filesystem encoding.
 | 
					        # able to be encoded by *either* the default or filesystem encoding.
 | 
				
			||||||
        # This test really only makes sense on Windows NT platforms
 | 
					        # This test really only makes sense on Windows NT platforms
 | 
				
			||||||
        # which have special Unicode support in posixmodule.
 | 
					        # which have special Unicode support in posixmodule.
 | 
				
			||||||
        if not hasattr(sys, "getwindowsversion") or \
 | 
					        if (not hasattr(sys, "getwindowsversion") or
 | 
				
			||||||
           sys.getwindowsversion()[3]<2:
 | 
					                sys.getwindowsversion()[3] < 2): #  0=win32s or 1=9x/ME
 | 
				
			||||||
           TESTFN_UNICODE_UNENCODABLE = None
 | 
					           TESTFN_UNICODE_UNENCODEABLE = None
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            # Japanese characters (I think - from bug 846133)
 | 
					            # Japanese characters (I think - from bug 846133)
 | 
				
			||||||
            TESTFN_UNICODE_UNENCODEABLE = u"@test-\u5171\u6709\u3055\u308c\u308b"
 | 
					            TESTFN_UNICODE_UNENCODEABLE = u"@test-\u5171\u6709\u3055\u308c\u308b"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue