~ubuntu-branches/ubuntu/vivid/git-cola/vivid

« back to all changes in this revision

Viewing changes to cola/widgets/createbranch.py

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2014-03-22 15:10:46 UTC
  • mfrom: (1.3.23)
  • Revision ID: package-import@ubuntu.com-20140322151046-s2lfr17hej2brlbu
Tags: 2.0.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from __future__ import division, absolute_import, unicode_literals
 
2
 
1
3
from PyQt4 import QtGui
2
4
from PyQt4 import QtCore
3
5
from PyQt4.QtCore import Qt
12
14
from cola.widgets import defs
13
15
from cola.widgets import completion
14
16
from cola.widgets.standard import Dialog
 
17
from cola.compat import ustr
15
18
 
16
19
 
17
20
def create_new_branch(revision=''):
234
237
 
235
238
    def getopts(self):
236
239
        self.opts.revision = self.revision.value()
237
 
        self.opts.branch = unicode(self.branch_name.text())
 
240
        self.opts.branch = ustr(self.branch_name.text())
238
241
        self.opts.checkout = self.checkout_checkbox.isChecked()
239
242
        self.opts.reset = self.reset_radio.isChecked()
240
243
        self.opts.fetch = self.fetch_checkbox.isChecked()