Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.
/ deplicate Public archive

py3 - windows - patch #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion duplicate/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


def _iterdups(dupinfo):
for key, value in dupinfo.dups.items():
for key, value in list(dupinfo.dups.items()):
if isinstance(value, DupInfo):
for subobj, subkey, subvalue in _iterdups(value):
yield subobj, subkey, subvalue
Expand Down
4 changes: 2 additions & 2 deletions duplicate/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ def __new__(cls, filtertype, dups, errors, parentobj=None, parentkey=None):
return inst

def __init__(self, *args, **kwargs):
super(DupInfo, self).__init__(*args, **kwargs)
super(DupInfo, self).__init__()
self._filter()

def _filter(self, delkey=None):
dupdict = self.dups

if delkey is None:
for key, value in dupdict.items():
for key, value in list(dupdict.items()):
if len(value) > 1:
continue
dupdict.pop(key)
Expand Down
2 changes: 1 addition & 1 deletion duplicate/utils/fs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _scandir(path, onerror, followlinks):
if entry.is_file(follow_symlinks=False):
files.append(entry)

elif entry.is_dir(followlinks):
elif entry.is_dir():
dirs.append(entry)

elif entry.is_file():
Expand Down