Commit a1ae6cf6 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Get "repo" from the Connection object directly

It's clearer this way as it does not give the impression that we need to
use the object return by Connection.__enter__().
parent 1c0ace9c7328
...@@ -154,7 +154,7 @@ class ImportSkosData(Command): ...@@ -154,7 +154,7 @@ class ImportSkosData(Command):
print(u'Created: %d\nUpdated: %d' % (len(created), len(updated))) print(u'Created: %d\nUpdated: %d' % (len(created), len(updated)))
if conceptschemes: if conceptschemes:
print(u'Concept schemes:\n* %s' % '\n* '.join(conceptschemes)) print(u'Concept schemes:\n* %s' % '\n* '.join(conceptschemes))
cnx.repo.shutdown() connection.repo.shutdown()
CWCTL.register(ImportSkosData) CWCTL.register(ImportSkosData)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment