summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2009-03-28 12:49:52 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2009-03-28 12:49:52 +0000
commit8ae749560891a0f0bcda0bab389a5d0ea927d11d (patch)
tree351b1410a636791cb790c369f41d2691d0dc0503
parentcb300b48c18c835ababb7769b3d6e85c5abbd7c2 (diff)
downloadpyyaml-8ae749560891a0f0bcda0bab389a5d0ea927d11d.tar.gz
Fixed the Pyrex implementation of Mark class.
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@348 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r--ext/_yaml.pyx16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/_yaml.pyx b/ext/_yaml.pyx
index 547d312..ab17623 100644
--- a/ext/_yaml.pyx
+++ b/ext/_yaml.pyx
@@ -78,14 +78,14 @@ cdef class Mark:
self.buffer = buffer
self.pointer = pointer
-# def get_snippet(self):
-# return None
-#
-# def __str__(self):
-# where = " in \"%s\", line %d, column %d" \
-# % (self.name, self.line+1, self.column+1)
-# return where
-#
+ def get_snippet(self):
+ return None
+
+ def __str__(self):
+ where = " in \"%s\", line %d, column %d" \
+ % (self.name, self.line+1, self.column+1)
+ return where
+
#class YAMLError(Exception):
# pass
#