示例#1
0
文件: command.py 项目: B-Rich/ctk
    def out(self, msg):
        """
        Called by ``Command._out()``.

        Does not prepend anything to `msg`.
        Adds trailing linesep to `msg` if there's not one already.
        """
        return add_linesep_if_missing(msg)
示例#2
0
文件: command.py 项目: MShaffar19/ctk
    def out(self, msg):
        """
        Called by ``Command._out()``.

        Does not prepend anything to `msg`.
        Adds trailing linesep to `msg` if there's not one already.
        """
        return add_linesep_if_missing(msg)
示例#3
0
文件: cli.py 项目: ContinuumIO/ctk
 def _error(self, msg):
     sys.stderr.write(
         add_linesep_if_missing(
             dedent(msg).replace(
                 '%prog', self.program_name
             )
         )
     )
     return self._exit(1)
示例#4
0
文件: cli.py 项目: MShaffar19/ctk
 def version(self, args=None):
     sys.stdout.write(add_linesep_if_missing(ctk.__version__))
     return self._exit(0)
示例#5
0
文件: cli.py 项目: MShaffar19/ctk
 def _error(self, msg):
     sys.stderr.write(
         add_linesep_if_missing(
             dedent(msg).replace('%prog', self.program_name)))
     return self._exit(1)
示例#6
0
文件: cli.py 项目: ContinuumIO/ctk
 def version(self, args=None):
     sys.stdout.write(add_linesep_if_missing(ctk.__version__))
     return self._exit(0)