# -*- coding: utf-8 -*- # # (C) Pywikipedia bot team, 2003-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id: 341eb8874bc3212e608be7a03cbea1ebb66db6e2 $' import config, transliteration import traceback, re, sys import wikipedia transliterator = transliteration.transliterator(config.console_encoding) colors = [ 'default', 'black', 'blue', 'green', 'aqua', 'red', 'purple', 'yellow', 'lightgray', 'gray', 'lightblue', 'lightgreen', 'lightaqua', 'lightred', 'lightpurple', 'lightyellow',
# -*- coding: utf-8 -*- # # (C) Pywikipedia bot team, 2003-2013 # # Distributed under the terms of the MIT license. # __version__ = '$Id: 3c1caadeff735267d168bf51c62fc19d95591920 $' import transliteration import traceback, re, sys import pywikibot as wikipedia from pywikibot import config from pywikibot.bot import DEBUG, VERBOSE, INFO, STDOUT, INPUT, WARNING import logging transliterator = transliteration.transliterator(config.console_encoding) colors = [ 'default', 'black', 'blue', 'green', 'aqua', 'red', 'purple', 'yellow', 'lightgray', 'gray', 'lightblue', 'lightgreen', 'lightaqua',
# # Distributed under the terms of the MIT license. # __version__ = '$Id: terminal_interface.py 9044 2011-03-13 10:26:54Z xqt $' import config, transliteration import traceback, re, sys import wikipedia try: import ctypes ctypes_found = True except ImportError: ctypes_found = False transliterator = transliteration.transliterator() def getDefaultTextColorInWindows(): """ This method determines the default text color and saves its color code inside the variable windowsColors['default']. Based on MIT-licensed code by Andre Burgaud published at http://starship.python.net/crew/theller/wiki/ColorConsole """ if sys.platform != 'win32' or not ctypes_found: return -1 SHORT = ctypes.c_short WORD = ctypes.c_ushort
# # Distributed under the terms of the MIT license. # __version__ = '$Id$' import config, transliteration import traceback, re, sys import wikipedia try: import ctypes ctypes_found = True except ImportError: ctypes_found = False transliterator = transliteration.transliterator() def getDefaultTextColorInWindows(): """ This method determines the default text color and saves its color code inside the variable windowsColors['default']. Based on MIT-licensed code by Andre Burgaud published at http://starship.python.net/crew/theller/wiki/ColorConsole """ if sys.platform != 'win32' or not ctypes_found: return -1 SHORT = ctypes.c_short WORD = ctypes.c_ushort # wincon.h