示例#1
0
 def use_gio(*args):
     try:
         import duplicity.backends.giobackend
         backend.force_backend(duplicity.backends.giobackend.GIOBackend)
     except ImportError:
         log.FatalError(_("Unable to load gio module"),
                        log.ErrorCode.gio_not_available)
示例#2
0
 def use_gio(*args):
     try:
         import duplicity.backends.giobackend
         backend.force_backend(duplicity.backends.giobackend.GIOBackend)
     except ImportError:
         log.FatalError(
             _("Unable to load gio backend: %s") % str(sys.exc_info()[1]),
             log.ErrorCode.gio_not_available)
示例#3
0
    def use_gio(*args):
        try:
            import duplicity.backends.giobackend

            backend.force_backend(duplicity.backends.giobackend.GIOBackend)
        except ImportError:
            log.FatalError(
                _("Unable to load gio backend: %s") % str(sys.exc_info()[1]), log.ErrorCode.gio_not_available
            )
示例#4
0
 def use_gio(*args):
     try:
         import duplicity.backends.giobackend
         backend.force_backend(duplicity.backends.giobackend.GIOBackend)
     except ImportError:
         log.FatalError(_("Unable to load gio module"), log.ErrorCode.gio_not_available)