Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit db7bb32

Browse files
authored
Merge pull request #387 from freakboy3742/master
Candidate for 0.1.2 release
2 parents f5dbce8 + c6a5dd0 commit db7bb32

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</description>
55

66
<property environment="env"/>
7-
<property name="release" value="2"/>
7+
<property name="release" value="3"/>
88
<exec executable="python" outputProperty="python-version">
99
<arg value="-c"/>
1010
<arg value="import sys; print('.'.join(sys.version.split('.',3)[:2]))"/>

python/common/org/python/types/Str.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public org.python.Object __getitem__(org.python.Object index) {
319319
__doc__ = ""
320320
)
321321
public org.python.Iterable __iter__() {
322-
java.util.List<org.python.Object> listOfStrs = new ArrayList<>();
322+
java.util.List<org.python.Object> listOfStrs = new java.util.ArrayList<org.python.Object>();
323323
for (int i = 0; i < this.value.length(); i++) {
324324
listOfStrs.add(new Str(this.value.substring(i, i + 1)));
325325
}
@@ -566,7 +566,7 @@ public org.python.Object center(org.python.Object width, org.python.Object charT
566566
} else {
567567
throw new org.python.exceptions.TypeError("Fill char must of type String");
568568
}
569-
569+
570570
if (width instanceof org.python.types.Int) {
571571
String str = this.value;
572572
int widthVal = (int)((org.python.types.Int)width).value;
@@ -577,9 +577,9 @@ public org.python.Object center(org.python.Object width, org.python.Object charT
577577
int diff = widthVal - strLen;
578578
int lenFirst = (diff)/2;
579579
int lenSecond = diff - lenFirst;
580-
580+
581581
java.lang.StringBuffer returnString = new java.lang.StringBuffer(widthVal);
582-
582+
583583
for (int i = 0; i < lenFirst; i++) {
584584
returnString.append(fillChar);
585585
}

voc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# __version__ = '1.2.3' # Final Release
77
# __version__ = '1.2.3.post1' # Post Release 1
88

9-
__version__ = '0.1.1'
9+
__version__ = '0.1.2'

voc/java/attributes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ def read_info(reader, dump=None):
14141414

14151415
for i in range(0, n_classes):
14161416
c1 = reader.read_u2()
1417-
inner_class = reader.constant_pool[c1].name.string
1417+
inner_class = reader.constant_pool[c1].name.value
14181418
if dump is not None:
14191419
reader.debug(" " * (dump + 2), 'Inner Class: %s' % inner_class)
14201420

@@ -1424,15 +1424,15 @@ def read_info(reader, dump=None):
14241424
if dump is not None:
14251425
reader.debug(" " * (dump + 3), 'Outer Class: (Anonymous)')
14261426
else:
1427-
outer_class = reader.constant_pool[c2].name.string
1427+
outer_class = reader.constant_pool[c2].name.value
14281428
if dump is not None:
14291429
reader.debug(" " * (dump + 3), 'Outer Class: %s' % outer_class)
14301430

14311431
c3 = reader.read_u2()
14321432
if c3 == 0:
14331433
inner_name = None
14341434
else:
1435-
inner_name = reader.constant_pool[c3].string
1435+
inner_name = reader.constant_pool[c3].value
14361436
if dump is not None:
14371437
reader.debug(" " * (dump + 3), 'Inner Name: %s' % inner_name)
14381438

@@ -1460,9 +1460,9 @@ def read_info(reader, dump=None):
14601460

14611461
classes.append(
14621462
InnerClass(
1463-
inner_class,
1464-
outer_class,
14651463
inner_name,
1464+
outer_class,
1465+
inner_class,
14661466
public=bool(flags & InnerClass.ACC_PUBLIC),
14671467
private=bool(flags & InnerClass.ACC_PRIVATE),
14681468
protected=bool(flags & InnerClass.ACC_PROTECTED),

0 commit comments

Comments
 (0)