summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-05-19 17:28:07 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-05-27 23:24:53 +0300
commitc5f91c4a8cecd60c8674c0b06976e1a21c7c6422 (patch)
tree7c9674261569d19623c5dbcaecb74c3d8c12cde0
parented7ba205831a05b9fe855b92356ad572e47eeb06 (diff)
Ecore: Small corrections the string representation functions of Exe
-rw-r--r--efl/ecore/efl.ecore_exe.pxi25
1 files changed, 4 insertions, 21 deletions
diff --git a/efl/ecore/efl.ecore_exe.pxi b/efl/ecore/efl.ecore_exe.pxi
index 9c32b52..3cd8a15 100644
--- a/efl/ecore/efl.ecore_exe.pxi
+++ b/efl/ecore/efl.ecore_exe.pxi
@@ -784,11 +784,8 @@ cdef class EventExeAdd(Event):
784 return -1 784 return -1
785 return 1 785 return 1
786 786
787 def __str__(self):
788 return "%s(exe=%s)" % (self.__class__.__name__, self.exe)
789
790 def __repr__(self): 787 def __repr__(self):
791 return "%s(exe=%r)" % (self.__class__.__name__, self.exe) 788 return "<%s(exe=%r)>" % (self.__class__.__name__, self.exe)
792 789
793 790
794cdef class EventExeDel(Event): 791cdef class EventExeDel(Event):
@@ -811,15 +808,9 @@ cdef class EventExeDel(Event):
811 self.signalled = bool(obj.signalled) 808 self.signalled = bool(obj.signalled)
812 return 1 809 return 1
813 810
814 def __str__(self):
815 return ("%s(pid=%s, exit_code=%s, exit_signal=%s, exited=%s, "
816 "signalled=%s, exe=%s)") % \
817 (self.__class__.__name__, self.pid, self.exit_code,
818 self.exit_signal, self.exited, self.signalled, self.exe)
819
820 def __repr__(self): 811 def __repr__(self):
821 return ("%s(pid=%s, exit_code=%s, exit_signal=%s, exited=%s, " 812 return ("<%s(pid=%s, exit_code=%s, exit_signal=%s, exited=%s, "
822 "signalled=%s, exe=%r)") % \ 813 "signalled=%s, exe=%r)>") % \
823 (self.__class__.__name__, self.pid, self.exit_code, 814 (self.__class__.__name__, self.pid, self.exit_code,
824 self.exit_signal, self.exited, self.signalled, self.exe) 815 self.exit_signal, self.exited, self.signalled, self.exe)
825 816
@@ -858,20 +849,12 @@ cdef class EventExeData(Event):
858 849
859 return 1 850 return 1
860 851
861 def __str__(self):
862 if self.lines is None:
863 count = None
864 else:
865 count = len(self.lines)
866 return "%s(size=%d, lines=#%d, exe=%s)" % \
867 (self.__class__.__name__, self.size, count, self.exe)
868
869 def __repr__(self): 852 def __repr__(self):
870 if self.lines is None: 853 if self.lines is None:
871 count = None 854 count = None
872 else: 855 else:
873 count = len(self.lines) 856 count = len(self.lines)
874 return "%s(size=%d, lines=#%d, exe=%r)" % \ 857 return "<%s(size=%d, lines=#%d, exe=%r)>" % \
875 (self.__class__.__name__, self.size, count, self.exe) 858 (self.__class__.__name__, self.size, count, self.exe)
876 859
877 860