aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lib/python/debian_linux/abi.py
diff options
context:
space:
mode:
authorBastian Blank <waldi@debian.org>2012-01-11 16:52:29 +0000
committerBastian Blank <waldi@debian.org>2012-01-11 16:52:29 +0000
commit9863acaddd79af17ac2dfa2b6bbfacaca100f3e6 (patch)
tree2cf3337a3fe37fddc0b92b07be3770516c00c5b2 /debian/lib/python/debian_linux/abi.py
parent42fbf6c05d96ee3cab22c50addde368a4f36b764 (diff)
downloadkernel_replicant_linux-9863acaddd79af17ac2dfa2b6bbfacaca100f3e6.tar.gz
kernel_replicant_linux-9863acaddd79af17ac2dfa2b6bbfacaca100f3e6.tar.bz2
kernel_replicant_linux-9863acaddd79af17ac2dfa2b6bbfacaca100f3e6.zip
debian/lib/python: PEP8 and other style fixes.
svn path=/dists/trunk/linux-2.6/; revision=18488
Diffstat (limited to 'debian/lib/python/debian_linux/abi.py')
-rw-r--r--debian/lib/python/debian_linux/abi.py13
1 files changed, 9 insertions, 4 deletions
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))