mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed a Python 2.3 incompatibility I overlooked in [5516].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -11,12 +11,7 @@ import re | ||||
| try: | ||||
|     reversed | ||||
| except NameError: | ||||
|     # Python 2.3 fallback. | ||||
|     # From http://www.python.org/doc/current/tut/node11.html | ||||
|     def reversed(data): | ||||
|         for index in xrange(len(data)-1, -1, -1): | ||||
|             yield data[index] | ||||
|  | ||||
|     from django.utils.itercompat import reversed     # Python 2.3 fallback | ||||
|  | ||||
| register = Library() | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user