"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mergelex.py" between
recode-3.7.4.tar.gz and recode-3.7.5.tar.gz

About: recode is a charset converter tool and library (fork of the original and now unmaintained GNU recode).

mergelex.py  (recode-3.7.4):mergelex.py  (recode-3.7.5)
skipping to change at line 60 skipping to change at line 60
'''.splitlines(True) '''.splitlines(True)
# Rest of C code. # Rest of C code.
section3 = ['%%\n'] section3 = ['%%\n']
within_C_code = False within_C_code = False
definitions = {} definitions = {}
section = 3 section = 3
while True: while True:
line = sys.stdin.readline() # FIXME: Treating all the input as latin1 is a hack: some of the files
# we read are UTF-8 encoded.
line = sys.stdin.buffer.readline().decode('latin1')
if not line: if not line:
break break
# A `/* Step name: NAME. */' line indicates the start of a new file. # A `/* Step name: NAME. */' line indicates the start of a new file.
# Generate an interface routine. The step name is saved for broketed # Generate an interface routine. The step name is saved for broketed
# prefixes in rules. # prefixes in rules.
match = re.match(r'/\* Step name: (.*)\. \*/', line) match = re.match(r'/\* Step name: (.*)\. \*/', line)
if match: if match:
section = 1 section = 1
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)