-#!/usr/bin/env python
+#!/bin/sh
+"""": # -*-python-*-
+bup_python="$(dirname "$0")/bup-python" || exit $?
+exec "$bup_python" "$0" ${1+"$@"}
+"""
+# end of bup preamble
import os, sys, time
from bup import hashsplit, git, options, client
from bup.helpers import *
try:
it = cp.get(line.strip())
next(it, None) # skip the file type
- except KeyError, e:
+ except KeyError as e:
add_error('error: %s' % e)
continue
yield IterToFile(it)