~mterry/duplicity/fix-gpg-options-crash-0.7

« back to all changes in this revision

Viewing changes to duplicity/asyncscheduler.py

  • Committer: Kenneth Loafman
  • Date: 2009-10-29 18:44:14 UTC
  • mfrom: (609.1.2 i18n-for-0.7)
  • Revision ID: kenneth@loafman.com-20091029184414-kbwu0fappcyweylj
Merge in lp:~duplicity-team/duplicity/i18n-for-0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
                           "propagating the result immediately")),
194
194
                         log.InfoCode.asynchronous_upload_done)
195
195
                self.__failed_waiter()
196
 
                raise AssertionError("%s: waiter should have raised an exception; "
197
 
                                     "this is a bug" % (self.__class__.__name__,))
 
196
                # TRANSL: 'waiter' = thing that waits, not a person who waits tables :-)
 
197
                raise AssertionError(_("%s: waiter should have raised an exception; "
 
198
                                       "this is a bug") % (self.__class__.__name__,))
198
199
 
199
200
        def wait_for_and_register_launch():
200
201
            check_pending_failure()    # raise on fail
201
202
            while self.__worker_count >= self.__concurrency or self.__barrier:
202
203
                if self.__worker_count == 0:
203
 
                    assert self.__barrier, "barrier should be in effect"
 
204
                    assert self.__barrier, _("barrier should be in effect")
204
205
                    self.__barrier = False
205
206
                    self.__cv.notifyAll()
206
207
                else: