From 9863acaddd79af17ac2dfa2b6bbfacaca100f3e6 Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Wed, 11 Jan 2012 16:52:29 +0000 Subject: debian/lib/python: PEP8 and other style fixes. svn path=/dists/trunk/linux-2.6/; revision=18488 --- debian/lib/python/debian_linux/abi.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'debian/lib/python/debian_linux/abi.py') diff --git a/debian/lib/python/debian_linux/abi.py b/debian/lib/python/debian_linux/abi.py index eae7a8380b08..1dcf63233465 100644 --- a/debian/lib/python/debian_linux/abi.py +++ b/debian/lib/python/debian_linux/abi.py @@ -10,9 +10,12 @@ class Symbol(object): # Symbols are resolved to modules by depmod at installation/ # upgrade time, not compile time, so moving a symbol between # modules is not an ABI change. Compare everything else. - if self.name != other.name: return False - if self.version != other.version: return False - if self.export != other.export: return False + if self.name != other.name: + return False + if self.version != other.version: + return False + if self.export != other.export: + return False return True @@ -22,6 +25,7 @@ class Symbol(object): return ret return not ret + class Symbols(dict): def __init__(self, file=None): if file: @@ -36,4 +40,5 @@ class Symbols(dict): symbols = self.values() symbols.sort(key=lambda i: i.name) for s in symbols: - file.write("%s %s %s %s\n" % (s.version, s.name, s.module, s.export)) + file.write("%s %s %s %s\n" % + (s.version, s.name, s.module, s.export)) -- cgit v1.2.3