Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-positional str.format() arg specifiers break Console for Python 2.6 #17080

Closed
qgib opened this issue Jul 11, 2013 · 1 comment
Closed

Non-positional str.format() arg specifiers break Console for Python 2.6 #17080

qgib opened this issue Jul 11, 2013 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API

Comments

@qgib
Copy link
Contributor

qgib commented Jul 11, 2013

Author Name: Larry Shaffer (Larry Shaffer)
Original Redmine Issue: 8277
Affected QGIS version: master
Redmine category:pyqgis_console
Assignee: Salvatore Larosa


Running QGIS with Python 2.6, PyQGIS console throws errors because no positional arg specifier is used for str.format():

'Untitled-{}'.format(nr)  # causes error

'Untitled-{0}'.format(nr)  # OK for Python 2.6

Attached is quick search of console directory outputted to build directory (using simple @'{}.+\.format'@ grep).


@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2013

Author Name: Anónimo (Anónimo)


Fixed in changeset "272400e30d603e22641292cca57c8fb49bba5b55".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant