Skip to content

Commit 8be3289

Browse files
author
Troy Melhase
committed
Docstrings and cleanup.
1 parent b877794 commit 8be3289

3 files changed

Lines changed: 162 additions & 128 deletions

File tree

‎lib/defaultconfig.py‎

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
headings = {
5-
'Contract.java' : [
6-
'from helpers import *',
7-
],
8-
9-
'ContractDetails.java' : [
10-
'from overloading import overloaded',
11-
'from Contract import Contract',
12-
],
13-
14-
'ScannerSubscription.java' : [
15-
'from helpers import *',
16-
],
17-
18-
'ExecutionFilter.java': [
19-
'from overloading import overloaded',
20-
],
21-
22-
}
23-
24-
25-
features = {
26-
'ContractDetails.java' : 'rename strip frobinate',
27-
}
28-
29-
30-
defaults = {
31-
'writemods':False
32-
}
33-
4+
indent = 4
345

356

367
outputSubs = [
@@ -39,7 +10,6 @@
3910
(r'System\.out\.println\((.*?)\)', r'print \1'),
4011
(r'(.*?)\.equals\((.*?)\)', r'\1 == \2'),
4112
(r'(.*?)\.equalsIgnoreCase\((.*?)\)', r'\1.lower() == \2.lower()'),
42-
(r'if self == p_other:', r'if self is p_other:'),
4313
(r'([\w.]+)\.size\(\)', r'len(\1)'),
4414
(r'(\w+)\.get\((.*?)\)', r'\1[\2]'),
4515
]
@@ -78,5 +48,22 @@
7848

7949

8050
modifierDecoratorMap = {
81-
'synchronized':'@synchronized(mlock)'
51+
'synchronized':'## original method synchronized'
8252
}
53+
54+
55+
modulePreable = [
56+
'#!/usr/bin/env python',
57+
'# -*- coding: utf-8 -*-',
58+
'',
59+
]
60+
61+
62+
bubbleInnerClasses = True
63+
scanPropMethods = True
64+
scanOverloadMethods = True
65+
sortClassMethods = False
66+
writeModifiersComments = False
67+
writeClassDocString = True
68+
69+
commentPrefix = '##'

0 commit comments

Comments
 (0)