mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Fixed #27963 -- Removed unneeded docstring example in contributing docs.
Backport of 1e93210f1f from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							2bd152b46f
						
					
				
				
					commit
					98f8e800dd
				
			| @@ -39,13 +39,7 @@ Python style | ||||
| * Use ``InitialCaps`` for class names (or for factory functions that | ||||
|   return classes). | ||||
|  | ||||
| * In docstrings, follow :pep:`257`. For example:: | ||||
|  | ||||
|       def foo(): | ||||
|           """ | ||||
|           Calculate something and return the result. | ||||
|           """ | ||||
|           ... | ||||
| * In docstrings, follow the style of existing docstrings and :pep:`257`. | ||||
|  | ||||
| * In tests, use :meth:`~django.test.SimpleTestCase.assertRaisesMessage` instead | ||||
|   of :meth:`~unittest.TestCase.assertRaises` so you can check the exception | ||||
|   | ||||
		Reference in New Issue
	
	Block a user