/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

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
configuring_bazaar.txt.
21
21
"""
22
22
 
23
 
from __future__ import absolute_import
24
 
 
25
23
import re
26
24
 
27
25
 
93
91
            return self
94
92
        elif next_char in context.allowed_quote_chars:
95
93
            # 2N backslashes followed by a quote are N backslashes
96
 
            context.token.append(u'\\' * (self.count/2))
 
94
            context.token.append(u'\\' * (self.count // 2))
97
95
            # 2N+1 backslashes follwed by a quote are N backslashes followed by
98
96
            # the quote which should not be processed as the start or end of
99
97
            # the quoted arg
158
156
            state = state.process(next_char, self)
159
157
            if state is None:
160
158
                break
161
 
        if not state is None and not getattr(state, 'finish', None) is None:
 
159
        if state is not None and not getattr(state, 'finish', None) is None:
162
160
            state.finish(self)
163
161
        result = u''.join(self.token)
164
162
        if not self.quoted and result == '':