From 5937d2fe81c5a4f7ef31ce3957c51f7677291ead Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Thu, 11 Oct 2007 18:39:22 +0000 Subject: whitespace cleanup git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@583908 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/connection.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'python') diff --git a/python/qpid/connection.py b/python/qpid/connection.py index 98fff9cd2f..15d7e69945 100644 --- a/python/qpid/connection.py +++ b/python/qpid/connection.py @@ -6,9 +6,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -79,7 +79,7 @@ class Connection: self.FRAME_END = self.spec.constants.byname["frame_end"].id self.write = getattr(self, "write_%s_%s" % (self.spec.major, self.spec.minor)) self.read = getattr(self, "read_%s_%s" % (self.spec.major, self.spec.minor)) - + def flush(self): self.codec.flush() @@ -91,7 +91,7 @@ class Connection: def tini(self): self.codec.unpack(Connection.INIT) - + def write_8_0(self, frame): c = self.codec c.encode_octet(self.spec.constants.byname[frame.type].id) @@ -233,7 +233,7 @@ class Method(Frame): if version == (0, 10): c.encode_octet(self.method.klass.id) c.encode_octet(self.method.id) - else: + else: c.encode_short(self.method.klass.id) c.encode_short(self.method.id) for field, arg in zip(self.method.fields, self.args): @@ -244,7 +244,7 @@ class Method(Frame): if version == (0, 10): klass = spec.classes.byid[c.decode_octet()] meth = klass.methods.byid[c.decode_octet()] - else: + else: klass = spec.classes.byid[c.decode_short()] meth = klass.methods.byid[c.decode_short()] args = tuple([c.decode(f.type) for f in meth.fields]) -- cgit v1.2.1