by
Changes to 2 files · Browse files at c6ce272c89e2 Showing diff from parent 644cd60f4cb7 b92345fcc4d0 Diff from another changeset...
@@ -65,10 +65,8 @@ if message:
cmdline += ['--message=' + hglib.fromunicode(message)]
cmdline += getUserOptions(opts, *olist)
- files = ['--'] + [repo.wjoin(hglib.fromunicode(x))
- for x in stwidget.getChecked()]
- addrem = [repo.wjoin(hglib.fromunicode(x))
- for x in stwidget.getChecked('!?')]
+ files = ['--'] + [repo.wjoin(x) for x in stwidget.getChecked()]
+ addrem = [repo.wjoin(x) for x in stwidget.getChecked('!?')]
if len(files) > 1:
cmdline += files
else:
|
@@ -86,7 +86,7 @@ for m in regexp.finditer(editor):
expanded.append(editor[pos:m.start()-1])
phrase = editor[m.start()+1:m.end()-1]
- pos=m.end()+1
+ pos = m.end()+1
if '$LINENUM' in phrase:
if lineno is None:
# throw away phrase
@@ -135,7 +135,6 @@
_user_shell = None
def openshell(root, reponame):
- global _user_shell
if not os.path.exists(root):
WarningMsgBox(
_('Failed to open path in terminal'),
@@ -192,7 +191,8 @@ 'control': 'black bold #dddddd_background',
}
-thgstylesheet = '* { white-space: pre; font-family: monospace; font-size: 9pt; }'
+thgstylesheet = '* { white-space: pre; font-family: monospace;' \
+ ' font-size: 9pt; }'
tbstylesheet = 'QToolBar { border: 0px }'
def configstyles(ui):
@@ -330,7 +330,8 @@ u'<a href="http://example/">http://example/</a>'
"""
csmatch = r'(\b[0-9a-f]{12}(?:[0-9a-f]{28})?\b)'
- httpmatch = r'(\b(http|https)://([-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|]))'
+ httpmatch = r'(\b(http|https)://([-A-Za-z0-9+&@#/%?=~_()|!:,.;]*' \
+ r'[-A-Za-z0-9+&@#/%=~_()|]))'
regexp = r'%s|%s' % (csmatch, httpmatch)
bodyre = re.compile(regexp)
|
Loading...