Skip to content

Commit 7465d46

Browse files
AutoPEP8actions-user
authored andcommitted
autopep8 fix
1 parent 6d50b81 commit 7465d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ignite/handlers/checkpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import numbers
33
import os
44
import tempfile
5-
from tempfile import _TemporaryFileWrapper # type: ignore
65
import warnings
76
from abc import ABCMeta, abstractmethod
87
from collections import OrderedDict, namedtuple
8+
from tempfile import _TemporaryFileWrapper # type: ignore
99
from typing import Callable, Mapping, Optional, Union
1010

1111
import torch
@@ -584,7 +584,7 @@ def _save_func(self, checkpoint: Mapping, path: str, func: Callable, rank: int =
584584
func(checkpoint, path, **self.kwargs)
585585
else:
586586
tmp_file = None
587-
tmp_name = ''
587+
tmp_name = ""
588588
tmp: _TemporaryFileWrapper = None
589589
if rank == 0:
590590
tmp = tempfile.NamedTemporaryFile(delete=False, dir=self.dirname)

0 commit comments

Comments
 (0)