~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/testament.py

  • Committer: Robert Collins
  • Date: 2005-10-15 11:38:29 UTC
  • mfrom: (1185.16.40)
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051015113829-40226233fb246920
mergeĀ fromĀ martin

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
import string
74
74
from sha import sha
75
75
 
76
 
 
77
 
def contains_whitespace(s):
78
 
    """True if there are any whitespace characters in s."""
79
 
    for ch in string.whitespace:
80
 
        if ch in s:
81
 
            return True
82
 
    else:
83
 
        return False
84
 
 
85
 
 
86
 
def contains_linebreaks(s):
87
 
    """True if there is any vertical whitespace in s."""
88
 
    for ch in '\f\n\r':
89
 
        if ch in s:
90
 
            return True
91
 
    else:
92
 
        return False
93
 
 
94
 
    
 
76
from bzrlib.osutils import contains_whitespace, contains_linebreaks
 
77
 
95
78
class Testament(object):
96
79
    """Reduced summary of a revision.
97
80