mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix most trivially-findable print statements.
There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
This commit is contained in:
		
							parent
							
								
									452bf519a7
								
							
						
					
					
						commit
						be19ed77dd
					
				
					 331 changed files with 2567 additions and 2648 deletions
				
			
		|  | @ -959,7 +959,7 @@ def test(): | |||
|     global mh, f | ||||
|     os.system('rm -rf $HOME/Mail/@test') | ||||
|     mh = MH() | ||||
|     def do(s): print s; print eval(s) | ||||
|     def do(s): print(s); print(eval(s)) | ||||
|     do('mh.listfolders()') | ||||
|     do('mh.listallfolders()') | ||||
|     testfolders = ['@test', '@test/test1', '@test/test2', | ||||
|  | @ -974,7 +974,7 @@ def do(s): print s; print eval(s) | |||
|     do('f.getsequences()') | ||||
|     seqs = f.getsequences() | ||||
|     seqs['foo'] = IntSet('1-10 12-20', ' ').tolist() | ||||
|     print seqs | ||||
|     print(seqs) | ||||
|     f.putsequences(seqs) | ||||
|     do('f.getsequences()') | ||||
|     for t in reversed(testfolders): do('mh.deletefolder(%r)' % (t,)) | ||||
|  | @ -990,10 +990,10 @@ def do(s): print s; print eval(s) | |||
|         try: | ||||
|             do('f.parsesequence(%r)' % (seq,)) | ||||
|         except Error as msg: | ||||
|             print "Error:", msg | ||||
|             print("Error:", msg) | ||||
|         stuff = os.popen("pick %r 2>/dev/null" % (seq,)).read() | ||||
|         list = map(int, stuff.split()) | ||||
|         print list, "<-- pick" | ||||
|         print(list, "<-- pick") | ||||
|     do('f.listmessages()') | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum