[gnome-code-assistance] [backends/c] Return correct bytes for file in clang



commit 9fcec214ebc32d583f0606d21fe91d9cf46bffc8
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Tue Nov 12 15:47:19 2013 +0100

    [backends/c] Return correct bytes for file in clang

 backends/c/clang/cindex.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/c/clang/cindex.py b/backends/c/clang/cindex.py
index 7f647c2..1736c27 100644
--- a/backends/c/clang/cindex.py
+++ b/backends/c/clang/cindex.py
@@ -2260,7 +2260,7 @@ class File(ClangObject):
         """Return the last modification time of the file."""
         return conf.lib.clang_getFileTime(self)
 
-    def __str__(self):
+    def __bytes__(self):
         return self.name
 
     def __repr__(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]