Skip to content

Commit 3bb37f4

Browse files
lint
1 parent bb31716 commit 3bb37f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

torchvision/datasets/caltech.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
22
import os.path
3+
import shutil
34
from pathlib import Path
45
from typing import Any, Callable, Optional, Union
5-
import shutil
6+
67
from PIL import Image
78

8-
from .utils import download_and_extract_archive, verify_str_arg,extract_archive
9+
from .utils import download_and_extract_archive, extract_archive, verify_str_arg
910
from .vision import VisionDataset
1011

1112

@@ -144,8 +145,6 @@ def download(self) -> None:
144145
extract_archive(os.path.join(gzip_folder, gzip_file), self.root)
145146
shutil.rmtree(gzip_folder)
146147
os.remove(os.path.join(self.root, "caltech-101.zip"))
147-
148-
149148

150149
def extra_repr(self) -> str:
151150
return "Target type: {target_type}".format(**self.__dict__)

0 commit comments

Comments
 (0)