diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2019-02-15 23:33:21 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-07-30 11:27:56 +0200 |
| commit | 0509148c2458a990cd0a7fd2d7cfbd45eb43e000 (patch) | |
| tree | 751dd8b94d85c9e383d9a2d9d9399a13f621c31a /django/utils | |
| parent | c7bef16a749ccbe2dbc8ce6b697dc80146584384 (diff) | |
Refs #30160 -- Made destination path a required argument of extract().
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/archive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/archive.py b/django/utils/archive.py index b26924cc2a..15326eb18c 100644 --- a/django/utils/archive.py +++ b/django/utils/archive.py @@ -40,7 +40,7 @@ class UnrecognizedArchiveFormat(ArchiveException): """ -def extract(path, to_path=''): +def extract(path, to_path): """ Unpack the tar or zip file at the specified path to the directory specified by to_path. @@ -83,7 +83,7 @@ class Archive: def __exit__(self, exc_type, exc_value, traceback): self.close() - def extract(self, to_path=''): + def extract(self, to_path): self._archive.extract(to_path) def list(self): |
