[Pkg-cli-apps-commits] [SCM] openbve-data branch, master, updated. debian/1.4.0.0+dfsg-1-19-ge443ab0

Paul Sladen debian at paul.sladen.org
Tue Jan 17 19:41:31 UTC 2012


The following commit has been merged in the master branch:
commit e443ab0913cb790b1995cca98491c29b0cdfcfab
Author: Paul Sladen <debian at paul.sladen.org>
Date:   Tue Jan 17 14:21:07 2012 +0100

    README.source: tweak Python example + wordwrap

diff --git a/debian/README.source b/debian/README.source
index c09054e..e30a46a 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -74,8 +74,9 @@ bitarray form designed for sending straight to:
 
 The following Python can be used to print the contents in ASCII-art form:
 
-  import struct
-  print ''.join(map(bin,struct.unpack("32I",open('Data/mask.bin').read(128)))).replace('0b','\n').replace('0',' ').replace('1','*')
+  python -c "import struct; \
+    print ''.join(map(bin,struct.unpack('32I',open('Data/mask.bin') \
+    .read(128)))).replace('0b','\n').replace('0','  ').replace('1','**')"
 
 
 Commit changelog:

-- 
openbve-data



More information about the Pkg-cli-apps-commits mailing list