/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 breezy/cmdline.py

Merge test-run support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
            return self
94
94
        elif next_char in context.allowed_quote_chars:
95
95
            # 2N backslashes followed by a quote are N backslashes
96
 
            context.token.append(u'\\' * (self.count // 2))
 
96
            context.token.append(u'\\' * (self.count/2))
97
97
            # 2N+1 backslashes follwed by a quote are N backslashes followed by
98
98
            # the quote which should not be processed as the start or end of
99
99
            # the quoted arg
158
158
            state = state.process(next_char, self)
159
159
            if state is None:
160
160
                break
161
 
        if state is not None and not getattr(state, 'finish', None) is None:
 
161
        if not state is None and not getattr(state, 'finish', None) is None:
162
162
            state.finish(self)
163
163
        result = u''.join(self.token)
164
164
        if not self.quoted and result == '':