# Path: jubakit/compat.py
# PYTHON3 = sys.version_info >= (3, 0)


import sys
import os
from .compat import builtins
  'print',
  'printe',
  'set_stdio',
  'get_stdio',
  'devnull',
]

class _StandardIO(object):
  """
  A class to override standard input/output/error.
  """

  _devnull = None

  stdin = sys.stdin
  stdout = sys.stdout
  stderr = sys.stderr

  @classmethod
  def get(cls):
    return (cls.stdin, cls.stdout, cls.stderr)

  @classmethod
  def set(cls, stdin=None, stdout=None, stderr=None):
    if stdin:  cls.stdin = stdin
    if stdout: cls.stdout = stdout
    if stderr: cls.stderr = stderr

  @classmethod
  def print(cls, *args, **kwargs):

# Path: jubakit/compat.py
# PYTHON3 = sys.version_info >= (3, 0)


# Path: jubakit/_stdio.py
import sys
import os
from .compat import builtins

  'print',
  'printe',
  'set_stdio',
  'get_stdio',
  'devnull',
]

class _StandardIO(object):
  """
  A class to override standard input/output/error.
  """

  _devnull = None

  stdin = sys.stdin
  stdout = sys.stdout
  stderr = sys.stderr

  @classmethod
  def get(cls):
    return (cls.stdin, cls.stdout, cls.stderr)

  @classmethod
  def set(cls, stdin=None, stdout=None, stderr=None):
    if stdin:  cls.stdin = stdin
    if stdout: cls.stdout = stdout
    if stderr: cls.stderr = stderr

  @classmethod
  def print(cls, *args, **kwargs):

    builtins.print(file=cls.stdout, *args, **kwargs)