X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Ft9802-git-p4-filetype.sh;h=eb9a8ed197b4c6383a4c688f5e5c3a3fcb102b12;hb=d01695a6f0b6c729b7345d4d9af2cb642b9f20aa;hp=66d3fc91a739a7f04bb73694a2f5d75034045d10;hpb=6bb0b9cc74dd2e64cd265af6abee0943e369730a;p=platform%2Fupstream%2Fgit.git diff --git a/t/t9802-git-p4-filetype.sh b/t/t9802-git-p4-filetype.sh index 66d3fc9..eb9a8ed 100755 --- a/t/t9802-git-p4-filetype.sh +++ b/t/t9802-git-p4-filetype.sh @@ -223,12 +223,12 @@ build_gendouble() { import sys import struct - s = struct.pack(">LL18s", + s = struct.pack(b">LL18s", 0x00051607, # AppleDouble 0x00020000, # version 2 - "" # pad to 26 bytes + b"" # pad to 26 bytes ) - sys.stdout.write(s) + getattr(sys.stdout, 'buffer', sys.stdout).write(s) EOF }