"Fossies" - the Fresh Open Source Software Archive

Member "bup-0.30/t/mksock" (28 Sep 2019, 287 Bytes) of package /linux/privat/bup-0.30.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "mksock": 0.29.3_vs_0.30.

    1 #!/bin/sh
    2 """": # -*-python-*-
    3 bup_python="$(dirname "$0")/../cmd/bup-python" || exit $?
    4 exec "$bup_python" "$0" ${1+"$@"}
    5 """
    6 # end of bup preamble
    7 
    8 from __future__ import absolute_import
    9 
   10 import socket, sys
   11 
   12 s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
   13 s.bind(sys.argv[1])