diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2012-06-12 08:16:31 -0700 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2012-06-12 08:16:31 -0700 |
| commit | 44f568d264dc8714c92eef21c81382027ad5f12f (patch) | |
| tree | 167d844d64a6dd48b5beb1fc4dd68336c7c89714 /apt/utils.py | |
| parent | 248de65b8195f33c096704bab9ee9b9bee807784 (diff) | |
| parent | bcef41df6bdefdd95e0b7cab0428b4655accf9fa (diff) | |
| download | python-apt-44f568d264dc8714c92eef21c81382027ad5f12f.tar.gz | |
Merge pre-released version of 0.8.5 from Debian branch
Diffstat (limited to 'apt/utils.py')
| -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"] |
