mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-21 15:21:09 +00:00
file is gone in python3
This commit is contained in:
parent
412afabc1c
commit
ed0cd2c1b5
@ -351,7 +351,7 @@ class SourcePackage(object):
|
||||
|
||||
assert os.path.isfile(self._changes_file), "%s does not exist." % \
|
||||
(self._changes_file)
|
||||
changes = debian.deb822.Changes(file(self._changes_file))
|
||||
changes = debian.deb822.Changes(open(self._changes_file))
|
||||
fixed_bugs = []
|
||||
if "Launchpad-Bugs-Fixed" in changes:
|
||||
fixed_bugs = changes["Launchpad-Bugs-Fixed"].split(" ")
|
||||
@ -393,7 +393,7 @@ class SourcePackage(object):
|
||||
# Check the changelog
|
||||
self._changelog = debian.changelog.Changelog()
|
||||
try:
|
||||
self._changelog.parse_changelog(file("debian/changelog"),
|
||||
self._changelog.parse_changelog(open("debian/changelog"),
|
||||
max_blocks=1, strict=True)
|
||||
except debian.changelog.ChangelogParseError as error:
|
||||
Logger.error("The changelog entry doesn't validate: %s", str(error))
|
||||
|
Loading…
x
Reference in New Issue
Block a user