Merged in scorphus/pyyaml (pull request #9)
scanner: use infinitive verb after auxiliary word could
diff --git a/lib/yaml/scanner.py b/lib/yaml/scanner.py
index 3a14c3a..834f662 100644
--- a/lib/yaml/scanner.py
+++ b/lib/yaml/scanner.py
@@ -286,7 +286,7 @@
or self.index-key.index > 1024:
if key.required:
raise ScannerError("while scanning a simple key", key.mark,
- "could not found expected ':'", self.get_mark())
+ "could not find expected ':'", self.get_mark())
del self.possible_simple_keys[level]
def save_possible_simple_key(self):
@@ -313,7 +313,7 @@
if key.required:
raise ScannerError("while scanning a simple key", key.mark,
- "could not found expected ':'", self.get_mark())
+ "could not find expected ':'", self.get_mark())
del self.possible_simple_keys[self.flow_level]
diff --git a/lib3/yaml/scanner.py b/lib3/yaml/scanner.py
index dacfbe7..c8d127b 100644
--- a/lib3/yaml/scanner.py
+++ b/lib3/yaml/scanner.py
@@ -286,7 +286,7 @@
or self.index-key.index > 1024:
if key.required:
raise ScannerError("while scanning a simple key", key.mark,
- "could not found expected ':'", self.get_mark())
+ "could not find expected ':'", self.get_mark())
del self.possible_simple_keys[level]
def save_possible_simple_key(self):
@@ -313,7 +313,7 @@
if key.required:
raise ScannerError("while scanning a simple key", key.mark,
- "could not found expected ':'", self.get_mark())
+ "could not find expected ':'", self.get_mark())
del self.possible_simple_keys[self.flow_level]