@@ -71,7 +71,7 @@ def write_file(self, odml_document, filename):
71
71
report = validation .report ()
72
72
if report :
73
73
msg += "The saved Document contains formal issues."
74
- msg += " Run 'odml.Validation' to resolve them.\n %s" % report
74
+ msg += " Run 'odml.validation. Validation(doc) ' to resolve them.\n %s" % report
75
75
warnings .warn (msg )
76
76
77
77
with open (filename , 'w' ) as file :
@@ -165,7 +165,7 @@ def _validation_warning(self):
165
165
report = Validation (self .doc ).report ()
166
166
if report :
167
167
msg = "The loaded Document contains formal issues."
168
- msg += "Run 'odml.Validation' to resolve them.\n %s" % report
168
+ msg += "Run 'odml.validation. Validation(doc) ' to resolve them.\n %s" % report
169
169
warnings .warn (msg )
170
170
171
171
def from_file (self , file , doc_format = None ):
@@ -245,7 +245,7 @@ def from_file(self, file, doc_format=None):
245
245
report = Validation (doc ).report ()
246
246
if report :
247
247
msg = "The loaded Document contains formal issues."
248
- msg += "Run 'odml.Validation' to resolve them.\n %s" % report
248
+ msg += "Run 'odml.validation. Validation(doc) ' to resolve them.\n %s" % report
249
249
warnings .warn (msg )
250
250
251
251
return self .doc
@@ -314,7 +314,7 @@ def from_string(self, string, doc_format=None):
314
314
report = Validation (doc ).report ()
315
315
if report :
316
316
msg = "The loaded Document contains formal issues."
317
- msg += "Run 'odml.Validation' to resolve them.\n %s" % report
317
+ msg += "Run 'odml.validation. Validation(doc) ' to resolve them.\n %s" % report
318
318
warnings .warn (msg )
319
319
320
320
return self .doc
0 commit comments