/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/plugins/git/commands.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-15 01:15:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6968.
  • Revision ID: jelmer@jelmer.uk-20180515011556-znut70b5ked83072
Fix running on python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from ...option import (
32
32
    Option,
33
33
    )
 
34
from ...sixish import (
 
35
    text_type,
 
36
    )
34
37
 
35
38
 
36
39
class cmd_git_import(Command):
169
172
    takes_args = ["sha1?"]
170
173
    takes_options = [Option('directory',
171
174
        short_name='d',
172
 
        help='Location of repository.', type=unicode),
 
175
        help='Location of repository.', type=text_type),
173
176
        Option('pretty', help='Pretty-print objects.')]
174
177
    encoding_type = 'exact'
175
178
 
293
296
 
294
297
    takes_options = [Option('directory',
295
298
        short_name='d',
296
 
        help='Location of repository.', type=unicode)]
 
299
        help='Location of repository.', type=text_type)]
297
300
    takes_args = ['target', 'package']
298
301
 
299
302
    def run(self, target, package, directory='.'):