~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Martin Pool
  • Date: 2005-08-12 15:41:44 UTC
  • Revision ID: mbp@sourcefrog.net-20050812154144-bc98570a78b8f633
- merge in deferred revfile work

Show diffs side-by-side

added added

removed removed

Lines of Context:
644
644
 
645
645
 
646
646
 
647
 
_NAME_RE = None
 
647
_NAME_RE = re.compile(r'^[^/\\]+$')
648
648
 
649
649
def is_valid_name(name):
650
 
    global _NAME_RE
651
 
    if _NAME_RE == None:
652
 
        _NAME_RE = re.compile(r'^[^/\\]+$')
653
 
        
654
650
    return bool(_NAME_RE.match(name))