/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: abentley
  • Date: 2005-10-15 01:07:02 UTC
  • mfrom: (1185.16.40)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@lappy-20051015010702-0b7a58668e447397
MergeĀ fromĀ Martin

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import os
25
25
import re
26
26
import sha
 
27
import string
27
28
import sys
28
29
import time
29
30
import types
424
425
        return True
425
426
    else:
426
427
        return False
 
428
        
 
429
 
 
430
def contains_whitespace(s):
 
431
    """True if there are any whitespace characters in s."""
 
432
    for ch in string.whitespace:
 
433
        if ch in s:
 
434
            return True
 
435
    else:
 
436
        return False
 
437
 
 
438
 
 
439
def contains_linebreaks(s):
 
440
    """True if there is any vertical whitespace in s."""
 
441
    for ch in '\f\n\r':
 
442
        if ch in s:
 
443
            return True
 
444
    else:
 
445
        return False