Skip to content

Commit 1b2f61e

Browse files
committed
patch 8.0.1648: resource fork tool doesn't work on Python 3
Problem: Resource fork tool doesn't work on Python 3. Solution: Use "print()" instead of "print". (Marius Gedminas)
1 parent 2a77d21 commit 1b2f61e

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎src/dehqx.py‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Python script to get both the data and resource fork from a BinHex encoded
22
# file.
33
# Author: MURAOKA Taro <koron.kaoriya@gmail.com>
4-
# Last Change: 2012 Jun 29
4+
# Last Change: 2018 Mar 27
55
#
66
# Copyright (C) 2003,12 MURAOKA Taro <koron.kaoriya@gmail.com>
77
# THIS FILE IS DISTRIBUTED UNDER THE VIM LICENSE.
@@ -15,11 +15,13 @@
1515
out = conv.FName
1616
out_data = out
1717
out_rsrc = out + '.rsrcfork'
18-
#print 'out_rsrc=' + out_rsrc
19-
print 'In file: ' + input
18+
19+
# This uses the print statement on Python 2, print function on Python 3.
20+
#print('out_rsrc=' + out_rsrc)
21+
print('In file: ' + input)
2022

2123
outfile = open(out_data, 'wb')
22-
print ' Out data fork: ' + out_data
24+
print(' Out data fork: ' + out_data)
2325
while 1:
2426
d = conv.read(128000)
2527
if not d: break
@@ -29,7 +31,7 @@
2931

3032
d = conv.read_rsrc(128000)
3133
if d:
32-
print ' Out rsrc fork: ' + out_rsrc
34+
print(' Out rsrc fork: ' + out_rsrc)
3335
outfile = open(out_rsrc, 'wb')
3436
outfile.write(d)
3537
while 1:

‎src/version.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1648,
769771
/**/
770772
1647,
771773
/**/

0 commit comments

Comments
 (0)