Ticket #8673: copystat-missing-import-2.diff
File copystat-missing-import-2.diff, 536 bytes (added by , 16 years ago) |
---|
-
django/core/files/move.py
9 9 from django.core.files import locks 10 10 11 11 try: 12 12 from shutil import copystat 13 13 except ImportError: 14 import stat 14 15 def copystat(src, dst): 15 16 """Copy all stat info (mode bits, atime and mtime) from src to dst""" 16 17 st = os.stat(src) 17 18 mode = stat.S_IMODE(st.st_mode) 18 19 if hasattr(os, 'utime'):