mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
2
django/core/cache/backends/locmem.py
vendored
2
django/core/cache/backends/locmem.py
vendored
@@ -1,7 +1,5 @@
|
||||
"Thread-safe in-memory cache backend."
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
import time
|
||||
try:
|
||||
import cPickle as pickle
|
||||
|
||||
@@ -3,7 +3,6 @@ Base classes for writing management commands (named commands which can
|
||||
be executed through ``django-admin.py`` or ``manage.py``).
|
||||
|
||||
"""
|
||||
from __future__ import with_statement
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# This is necessary in Python 2.5 to enable the with statement, in 2.6
|
||||
# and up it is no longer necessary.
|
||||
from __future__ import with_statement
|
||||
|
||||
import sys
|
||||
import os
|
||||
import gzip
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from __future__ import with_statement
|
||||
import cgi
|
||||
import errno
|
||||
import mimetypes
|
||||
|
||||
Reference in New Issue
Block a user