summaryrefslogtreecommitdiff
path: root/qpid/java/common
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-07-25 12:47:31 +0000
committerRafael H. Schloming <rhs@apache.org>2007-07-25 12:47:31 +0000
commit9d771f7e8246f1c2e433fd07a5238489b6350fff (patch)
tree365b5f9e0a8ce697b479fb92705ed22a464e3f94 /qpid/java/common
parent544f8b73929c3bceaed9953e9bbf5d5c0ea83f74 (diff)
downloadqpid-python-9d771f7e8246f1c2e433fd07a5238489b6350fff.tar.gz
removed usage of print >>
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@559433 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common')
-rwxr-xr-xqpid/java/common/generate20
1 files changed, 10 insertions, 10 deletions
diff --git a/qpid/java/common/generate b/qpid/java/common/generate
index 0add0f1e96..2d320df67e 100755
--- a/qpid/java/common/generate
+++ b/qpid/java/common/generate
@@ -25,7 +25,14 @@ class Output:
self.name = name
self.lines = []
- def line(self, l = None):
+ self.line("package %s;" % self.package)
+ self.line()
+ self.line("import java.util.Map;")
+ self.line("import java.util.UUID;")
+ self.line()
+ self.line()
+
+ def line(self, l = ""):
self.lines.append(l)
def write(self):
@@ -34,16 +41,9 @@ class Output:
os.makedirs(dir)
file = os.path.join(dir, "%s.java" % self.name)
out = open(file, "w")
- print >> out, "package %s;" % self.package
- print >> out
- print >> out, "import java.util.Map;"
- print >> out, "import java.util.UUID;"
- print >> out
for l in self.lines:
- if l == None:
- print >> out
- else:
- print >> out, l
+ out.write(l)
+ out.write(os.linesep)
out.close()
TYPES = {