Advertisement
Guest User

dota2_family.py

a guest
Feb 5th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.00 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. This family file was auto-generated by $Id: 4993fd66518a2c61c49b9e1bdf8f4b622459ee34 $
  4. Configuration parameters:
  5.  url = http://dota2.gamepedia.com/
  6.  name = dota2
  7.  
  8. Please do not commit this to the Git repository!
  9. """
  10.  
  11. from pywikibot import family
  12. from pywikibot.tools import deprecated
  13.  
  14.  
  15. class Family(family.Family):
  16.     def __init__(self):
  17.         family.Family.__init__(self)
  18.         self.name = 'dota2'
  19.         self.langs = {
  20.             'de': 'dota2-de.gamepedia.com',
  21.             'en': 'dota2.gamepedia.com',
  22.             'pt': 'dota2-pt.gamepedia.com',
  23.             'ru': 'dota2-ru.gamepedia.com',
  24.             'zh': 'dota2-zh.gamepedia.com',
  25.         }
  26.  
  27.     def scriptpath(self, code):
  28.         return {
  29.             'de': '',
  30.             'en': '',
  31.             'pt': '',
  32.             'ru': '',
  33.             'zh': '',
  34.         }[code]
  35.  
  36.     @deprecated('APISite.version()')
  37.     def version(self, code):
  38.         return {
  39.             'en': u'1.26.2',
  40.         }[code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement