utils/move_rules.py 1 location
|
@@ 126-135 (lines=10) @@
|
| 123 |
|
return new_contents |
| 124 |
|
|
| 125 |
|
|
| 126 |
|
def get_key(line): |
| 127 |
|
if ':' in line and line[0].isalpha(): |
| 128 |
|
char_index = 0 |
| 129 |
|
_ll = len(line) |
| 130 |
|
while char_index < _ll-1 and (line[char_index].isalpha() or |
| 131 |
|
line[char_index] == '_'): |
| 132 |
|
char_index += 1 |
| 133 |
|
if line[char_index] == ':': |
| 134 |
|
return line[0:char_index] |
| 135 |
|
return None |
| 136 |
|
|
| 137 |
|
|
| 138 |
|
def get_sections(file_contents): |
utils/fix_file_ocilclause.py 1 location
|
@@ 150-159 (lines=10) @@
|
| 147 |
|
return new_contents |
| 148 |
|
|
| 149 |
|
|
| 150 |
|
def get_key(line): |
| 151 |
|
if ':' in line and line[0].isalpha(): |
| 152 |
|
char_index = 0 |
| 153 |
|
_ll = len(line) |
| 154 |
|
while char_index < _ll-1 and (line[char_index].isalpha() or |
| 155 |
|
line[char_index] == '_'): |
| 156 |
|
char_index += 1 |
| 157 |
|
if line[char_index] == ':': |
| 158 |
|
return line[0:char_index] |
| 159 |
|
return None |
| 160 |
|
|
| 161 |
|
|
| 162 |
|
def get_sections(file_contents): |
utils/duplicated_prodtypes.py 1 location
|
@@ 150-159 (lines=10) @@
|
| 147 |
|
return new_contents |
| 148 |
|
|
| 149 |
|
|
| 150 |
|
def get_key(line): |
| 151 |
|
if ':' in line and line[0].isalpha(): |
| 152 |
|
char_index = 0 |
| 153 |
|
_ll = len(line) |
| 154 |
|
while char_index < _ll-1 and (line[char_index].isalpha() or |
| 155 |
|
line[char_index] == '_'): |
| 156 |
|
char_index += 1 |
| 157 |
|
if line[char_index] == ':': |
| 158 |
|
return line[0:char_index] |
| 159 |
|
return None |
| 160 |
|
|
| 161 |
|
|
| 162 |
|
def get_sections(file_contents): |