~ldziedziul/rapid/open-file-on-dbl-click

« back to all changes in this revision

Viewing changes to raphodo/utilities.py

  • Committer: Damon Lynch
  • Date: 2018-11-05 06:29:25 UTC
  • Revision ID: damonlynch@gmail.com-20181105062925-6gezp70e34fip0i3
Allow installation into a Python virtual environment. Install the latest version of PyQt5 and PyQt5_sip every time in install.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
        s = items[0]
401
401
        for item in items[1:-1]:
402
402
            # the middle of a list of things
403
 
            s =  '%(first_items)s, %(last_items)s'% dict(first_items=s,
404
 
                                                         last_items=item)
 
403
            s =  '%(first_items)s, %(last_items)s'% dict(
 
404
                first_items=s, last_items=item
 
405
            )
405
406
        # the end of a list of things
406
 
        s = '%(start_items)s and %(last_item)s' % dict(start_items=s,
407
 
                                                       last_item=items[-1])
 
407
        s = '%(start_items)s and %(last_item)s' % dict(
 
408
            start_items=s, last_item=items[-1]
 
409
        )
408
410
        return s
409
411
    return ''
410
412