mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-11 08:51:29 +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." % \
|
assert os.path.isfile(self._changes_file), "%s does not exist." % \
|
||||||
(self._changes_file)
|
(self._changes_file)
|
||||||
changes = debian.deb822.Changes(file(self._changes_file))
|
changes = debian.deb822.Changes(open(self._changes_file))
|
||||||
fixed_bugs = []
|
fixed_bugs = []
|
||||||
if "Launchpad-Bugs-Fixed" in changes:
|
if "Launchpad-Bugs-Fixed" in changes:
|
||||||
fixed_bugs = changes["Launchpad-Bugs-Fixed"].split(" ")
|
fixed_bugs = changes["Launchpad-Bugs-Fixed"].split(" ")
|
||||||
@ -393,7 +393,7 @@ class SourcePackage(object):
|
|||||||
# Check the changelog
|
# Check the changelog
|
||||||
self._changelog = debian.changelog.Changelog()
|
self._changelog = debian.changelog.Changelog()
|
||||||
try:
|
try:
|
||||||
self._changelog.parse_changelog(file("debian/changelog"),
|
self._changelog.parse_changelog(open("debian/changelog"),
|
||||||
max_blocks=1, strict=True)
|
max_blocks=1, strict=True)
|
||||||
except debian.changelog.ChangelogParseError as error:
|
except debian.changelog.ChangelogParseError as error:
|
||||||
Logger.error("The changelog entry doesn't validate: %s", str(error))
|
Logger.error("The changelog entry doesn't validate: %s", str(error))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user