Remove unnecessary str().

This commit is contained in:
Florian Bruhin 2015-09-30 21:26:41 +02:00
parent 7fcbbc98f6
commit ae3497a3a1
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ class TabbedBrowser(tabwidget.TabWidget):
else:
scroll_pos = '{:2}%'.format(y)
fields['scroll_pos'] = str(scroll_pos)
fields['scroll_pos'] = scroll_pos
fmt = config.get('ui', 'window-title-format')
self.window().setWindowTitle(fmt.format(**fields))

View File

@ -120,7 +120,7 @@ class TabWidget(QTabWidget):
else:
scroll_pos = '{:2}%'.format(y)
fields['scroll_pos'] = str(scroll_pos)
fields['scroll_pos'] = scroll_pos
fmt = config.get('tabs', 'title-format')
self.tabBar().setTabText(idx, fmt.format(**fields))