diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-11 09:23:45 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-11 09:23:45 +0200 |
| commit | 9ff1b964d3b4ccb041eddfda9ad930db736769a1 (patch) | |
| tree | 47e1bd7ad592b826b0761c33f9e20341e07cb788 /apt | |
| parent | 8c17defbb7ef82f5791cf37973c9b26a367359ea (diff) | |
| download | python-apt-9ff1b964d3b4ccb041eddfda9ad930db736769a1.tar.gz | |
add test for utils.get_release_date_from_release_file and update code for more py3 friendliness
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/utils.py b/apt/utils.py index 49e8bed5..08140258 100644 --- a/apt/utils.py +++ b/apt/utils.py @@ -48,7 +48,7 @@ def get_release_date_from_release_file(path): if not path or not os.path.exists(path): return None tag = apt_pkg.TagFile(open(path)) - section = tag.next() + section = next(tag) if not "Date" in section: return None date = section["Date"] |
