Mercurial > p > roundup > code
comparison roundup/backends/rdbms_common.py @ 6133:e7cb0147e6fe
Make format strings use named placeholders rather than %s/%r
Fixing some issues reported while updating roundup.pot to prep for
2.0.0 beta releases. Still more to do but....
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 04 Apr 2020 11:22:06 -0400 |
| parents | e6073c2291c6 |
| children | 8497bf3f23a1 |
comparison
equal
deleted
inserted
replaced
| 6132:2168da32403d | 6133:e7cb0147e6fe |
|---|---|
| 543 if not force and new_spec == old_spec: | 543 if not force and new_spec == old_spec: |
| 544 # no changes | 544 # no changes |
| 545 return 0 | 545 return 0 |
| 546 | 546 |
| 547 if not self.config.RDBMS_ALLOW_ALTER: | 547 if not self.config.RDBMS_ALLOW_ALTER: |
| 548 raise DatabaseError(_('ALTER operation disallowed: %r -> %r.'% ( | 548 raise DatabaseError(_( |
| 549 old_spec, new_spec))) | 549 'ALTER operation disallowed: %(old)r -> %(new)r.'% { |
| 550 'old': old_spec, 'new': new_spec})) | |
| 550 | 551 |
| 551 logger = logging.getLogger('roundup.hyperdb.backend') | 552 logger = logging.getLogger('roundup.hyperdb.backend') |
| 552 logger.info('update_class %s' % spec.classname) | 553 logger.info('update_class %s' % spec.classname) |
| 553 | 554 |
| 554 logger.debug('old_spec %r' % (old_spec,)) | 555 logger.debug('old_spec %r' % (old_spec,)) |
