mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	#12547: Fix example in nntplib doc. Patch by July Tikhonov.
This commit is contained in:
		
							parent
							
								
									8188f585b2
								
							
						
					
					
						commit
						04f648cb90
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -75,10 +75,10 @@ The module itself defines the following classes:
 | 
				
			||||||
   connection when done. Here is a sample on how using it:
 | 
					   connection when done. Here is a sample on how using it:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    >>> from nntplib import NNTP
 | 
					    >>> from nntplib import NNTP
 | 
				
			||||||
    >>> with nntplib.NNTP('news.gmane.org') as n:
 | 
					    >>> with NNTP('news.gmane.org') as n:
 | 
				
			||||||
    ...     n.group('gmane.comp.python.committers')
 | 
					    ...     n.group('gmane.comp.python.committers')
 | 
				
			||||||
    ...
 | 
					    ...
 | 
				
			||||||
    ('211 1454 1 1454 gmane.comp.python.committers', '1454', '1', '1454', 'gmane.comp.python.committers')
 | 
					    ('211 1755 1 1755 gmane.comp.python.committers', 1755, 1, 1755, 'gmane.comp.python.committers')
 | 
				
			||||||
    >>>
 | 
					    >>>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -128,7 +128,7 @@ connection when done::
 | 
				
			||||||
  >>> with NNTP('news.gmane.org') as n:
 | 
					  >>> with NNTP('news.gmane.org') as n:
 | 
				
			||||||
  ...     n.group('gmane.comp.python.committers')
 | 
					  ...     n.group('gmane.comp.python.committers')
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
  ('211 1754 1 1754 gmane.comp.python.committers', 1754, 1, 1754, 'gmane.comp.python.committers')
 | 
					  ('211 1755 1 1755 gmane.comp.python.committers', 1755, 1, 1755, 'gmane.comp.python.committers')
 | 
				
			||||||
  >>>
 | 
					  >>>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(Contributed by Giampaolo Rodolà in :issue:`9795`)
 | 
					(Contributed by Giampaolo Rodolà in :issue:`9795`)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue