Skip to content

Commit

Permalink
Correct access to iterator. Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazza committed Jan 11, 2021
1 parent 7d3e769 commit 89cbabd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
__author__ = "Andrea Lazzarotto"
__copyright__ = "(c) 2014-2021, Andrea Lazzarotto"
__license__ = "GPLv3"
__version__ = "1.1.2"
__version__ = "1.1.3"
__maintainer__ = "Andrea Lazzarotto"
__email__ = "andrea.lazzarotto@gmail.com"

Expand Down
2 changes: 1 addition & 1 deletion recuperabit/fs/ntfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _integrate_attribute_list(parsed, part, image):
files = entries_by_type[num]
if (
len(files) == 0 or
(len(files) == 1 and iter(files).next() == base_record)
(len(files) == 1 and next(iter(files)) == base_record)
):
del entries_by_type[num]

Expand Down

0 comments on commit 89cbabd

Please sign in to comment.