mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Refs #23919 -- Removed unneeded AttributeError catching in collectstatic's link_file().
os.symlink() exists always on Python 3.2+.
This commit is contained in:
parent
8380fe08a0
commit
712fe12466
1 changed files with 0 additions and 4 deletions
|
@ -314,10 +314,6 @@ class Command(BaseCommand):
|
||||||
if os.path.lexists(full_path):
|
if os.path.lexists(full_path):
|
||||||
os.unlink(full_path)
|
os.unlink(full_path)
|
||||||
os.symlink(source_path, full_path)
|
os.symlink(source_path, full_path)
|
||||||
except AttributeError:
|
|
||||||
import platform
|
|
||||||
raise CommandError("Symlinking is not supported by Python %s." %
|
|
||||||
platform.python_version())
|
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
import platform
|
import platform
|
||||||
raise CommandError("Symlinking is not supported in this "
|
raise CommandError("Symlinking is not supported in this "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue