move an mport out of a function

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2011-10-21 23:38:52 +00:00
parent 01f4ce4c49
commit 9117a4af30
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import copy
import operator import operator
from functools import wraps, update_wrapper from functools import wraps, update_wrapper
@ -258,7 +259,6 @@ class SimpleLazyObject(LazyObject):
memo[id(self)] = result memo[id(self)] = result
return result return result
else: else:
import copy
return copy.deepcopy(self._wrapped, memo) return copy.deepcopy(self._wrapped, memo)
# Need to pretend to be the wrapped class, for the sake of objects that care # Need to pretend to be the wrapped class, for the sake of objects that care