~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Dmitry Vasiliev
  • Date: 2007-03-07 15:17:56 UTC
  • mto: (2328.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: dima@hlabs.spb.ru-20070307151756-ryfruec1tq9g8344
Fixed is_inside_* methods implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
    for dirname in dir_list:
519
519
        if is_inside(dirname, fname):
520
520
            return True
521
 
    else:
522
 
        return False
 
521
    return False
523
522
 
524
523
 
525
524
def is_inside_or_parent_of_any(dir_list, fname):
527
526
    for dirname in dir_list:
528
527
        if is_inside(dirname, fname) or is_inside(fname, dirname):
529
528
            return True
530
 
    else:
531
 
        return False
 
529
    return False
532
530
 
533
531
 
534
532
def pumpfile(fromfile, tofile):