diff options
author | Olly Cope <olly@ollycope.com> | 2017-01-12 11:20:21 +0000 |
---|---|---|
committer | Olly Cope <olly@ollycope.com> | 2017-01-12 11:20:21 +0000 |
commit | 2929abc009bac63682cecfd1c8c8cf599fabcb13 (patch) | |
tree | dc1f5fdd2a3f6d2b11481a976aa7217a02826827 | |
parent | 7c87b0213790d6181305d275c055011312c6c872 (diff) | |
download | yoyo-2929abc009bac63682cecfd1c8c8cf599fabcb13.tar.gz |
apply linter suggestions
-rwxr-xr-x | yoyo/migrations.py | 4 | ||||
-rw-r--r-- | yoyo/tests/__init__.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/yoyo/migrations.py b/yoyo/migrations.py index 9ade1ae..b07f0af 100755 --- a/yoyo/migrations.py +++ b/yoyo/migrations.py @@ -244,8 +244,8 @@ class MigrationStep(StepBase): format = '|'.join(' %%- %ds ' % size for size in column_sizes) format += '\n' out.write(format % tuple(column_names)) - out.write('+'.join('-' * (size + 2) for size in column_sizes) - + '\n') + out.write('+'.join('-' * (size + 2) for size in column_sizes) + + '\n') for row in result: out.write(format % tuple(row)) out.write(plural(len(result), '(%d row)', '(%d rows)') + "\n") diff --git a/yoyo/tests/__init__.py b/yoyo/tests/__init__.py index 03021cb..9561c27 100644 --- a/yoyo/tests/__init__.py +++ b/yoyo/tests/__init__.py @@ -71,5 +71,6 @@ class MigrationsContextManager(object): return func(*(args + (self.tmpdir,)), **kwargs) return decorator + with_migrations = MigrationsContextManager migrations_dir = MigrationsContextManager |