예제 #1
0
파일: static_info.py 프로젝트: poeliu/Pinso
 def debug_info(self):
     if not self.proto.HasField('debug_info'):
         return '%21s' % ''
     else:
         file = util.basename(self.proto.debug_info.file_name)
         line = self.proto.debug_info.line
         content = []
         content.append('%15s' % file)
         content.append('+%04d' % line)
         return ' '.join(content)
예제 #2
0
파일: static_info.py 프로젝트: poeliu/Pinso
 def debug_info(self):
     if not self.proto.HasField('debug_info'):
         return '%21s' % ''
     else:
         file = util.basename(self.proto.debug_info.file_name)
         line = self.proto.debug_info.line
         content = []
         content.append('%15s' % file)
         content.append('+%04d' % line)
         return ' '.join(content)
예제 #3
0
파일: static_info.py 프로젝트: poeliu/Pinso
 def basename(self):
     return util.basename(self.proto.name)
예제 #4
0
파일: static_info.py 프로젝트: poeliu/Pinso
 def basename(self):
     return util.basename(self.proto.name)