mirror of
https://github.com/git/git.git
synced 2026-02-18 05:39:11 +00:00
Merge branch 'bc/git-p4-for-python-2.4'
With small updates to remove dependency on newer features of Python, keep git-p4 usable with older Python. * bc/git-p4-for-python-2.4: INSTALL: git-p4 does not support Python 3 git-p4.py: support Python 2.4 git-p4.py: support Python 2.5
This commit is contained in:
@@ -105,12 +105,13 @@ build_gendouble() {
|
||||
cat >gendouble.py <<-\EOF
|
||||
import sys
|
||||
import struct
|
||||
import array
|
||||
|
||||
s = array.array("c", '\0' * 26)
|
||||
struct.pack_into(">L", s, 0, 0x00051607) # AppleDouble
|
||||
struct.pack_into(">L", s, 4, 0x00020000) # version 2
|
||||
s.tofile(sys.stdout)
|
||||
s = struct.pack(">LL18s",
|
||||
0x00051607, # AppleDouble
|
||||
0x00020000, # version 2
|
||||
"" # pad to 26 bytes
|
||||
)
|
||||
sys.stdout.write(s)
|
||||
EOF
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user