[Jython-checkins] jython: Code convetion.
frank.wierzbicki
jython-checkins at python.org
Tue Apr 17 00:45:10 CEST 2012
http://hg.python.org/jython/rev/5a67b416f5ff
changeset: 6598:5a67b416f5ff
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Mon Apr 16 15:43:44 2012 -0700
summary:
Code convetion.
files:
src/org/python/core/BaseSet.java | 3 ++-
src/org/python/core/PySet.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/org/python/core/BaseSet.java b/src/org/python/core/BaseSet.java
--- a/src/org/python/core/BaseSet.java
+++ b/src/org/python/core/BaseSet.java
@@ -372,8 +372,9 @@
final PyObject baseset_intersection(PyObject [] args) {
BaseSet result = BaseSet.makeNewSet(getType(), this);
- if (args.length == 0)
+ if (args.length == 0) {
return result;
+ }
for (PyObject other: args) {
result = (BaseSet)result.baseset_intersection(other);
diff --git a/src/org/python/core/PySet.java b/src/org/python/core/PySet.java
--- a/src/org/python/core/PySet.java
+++ b/src/org/python/core/PySet.java
@@ -324,8 +324,9 @@
throw Py.TypeError("difference_update() takes no keyword arguments");
}
- if (args.length == 0)
+ if (args.length == 0) {
return;
+ }
for (PyObject other: args) {
if (other instanceof BaseSet) {
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list