mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Merged revisions 85814 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85814 | benjamin.peterson | 2010-10-23 21:52:05 -0500 (Sat, 23 Oct 2010) | 1 line remove broken code accounting an offset the size of the line #10186 ........
This commit is contained in:
		
							parent
							
								
									feca46c167
								
							
						
					
					
						commit
						9831611865
					
				
					 3 changed files with 9 additions and 2 deletions
				
			
		|  | @ -1299,8 +1299,6 @@ print_error_text(PyObject *f, int offset, const char *text) | |||
| { | ||||
|     char *nl; | ||||
|     if (offset >= 0) { | ||||
|         if (offset > 0 && offset == (int)strlen(text)) | ||||
|             offset--; | ||||
|         for (;;) { | ||||
|             nl = strchr(text, '\n'); | ||||
|             if (nl == NULL || nl-text >= offset) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson