# Path: Cogs/DL.py
# def setup(bot):
# async def async_post_json(url, data = None, headers = None, ssl = None):
# async def async_post_text(url, data = None, headers = None, ssl = None):
# async def async_post_bytes(url, data = None, headers = None, ssl = None):
# async def async_head_json(url, headers = None, ssl = None):
# async def async_dl(url, headers = None, ssl = None):
# async def async_text(url, headers = None, ssl = None):
# async def async_json(url, headers = None, ssl = None):
# 
# Path: Cogs/Nullify.py
# def setup(bot):
# def clean(string, deaden_links = False, ctx = None):
# def escape_all(string, mentions = True, markdown = True):
# def resolve_mentions(string, ctx = None, escape = True, show_mentions = True, channel_mentions = False):


from xml.sax.saxutils import unescape
from Cogs import DL
from Cogs import Nullify

				current_type = i.split("</a></td>")[-2].split('">')[-1]
				type_primed = False
			except:
				# bad type - prime it though
				type_primed = True
			continue
		if "td__name" in i:
			# Primed for name
			name_primed = True
			continue
	
	if not len(types):
		return None
	if not len(types) == len(names):
		# Only way this would happen that I've seen so far, is with custom entries
		return None
	partout = ''
	if style.lower() == 'md':
		partout = mdStyle(types, names, escape)
	elif style.lower() == 'mdblock':
		partout = mdBlockStyle(types, names, escape)
	elif style.lower() == 'bold':
		partout = boldStyle(types, names, escape)
	elif style.lower() == 'bolditalic':
		partout = boldItalicStyle(types, names, escape)
	elif style.lower() == 'normal':
		partout = normalStyle(types, names, escape)
	else:
		# No style present
		return None

# Path: Cogs/DL.py
# def setup(bot):
# async def async_post_json(url, data = None, headers = None, ssl = None):
# async def async_post_text(url, data = None, headers = None, ssl = None):
# async def async_post_bytes(url, data = None, headers = None, ssl = None):
# async def async_head_json(url, headers = None, ssl = None):
# async def async_dl(url, headers = None, ssl = None):
# async def async_text(url, headers = None, ssl = None):
# async def async_json(url, headers = None, ssl = None):
# 
# Path: Cogs/Nullify.py
# def setup(bot):
# def clean(string, deaden_links = False, ctx = None):
# def escape_all(string, mentions = True, markdown = True):
# def resolve_mentions(string, ctx = None, escape = True, show_mentions = True, channel_mentions = False):


# Path: Cogs/PCPP.py
from xml.sax.saxutils import unescape
from Cogs import DL
from Cogs import Nullify

				current_type = i.split("</a></td>")[-2].split('">')[-1]
				type_primed = False
			except:
				# bad type - prime it though
				type_primed = True
			continue
		if "td__name" in i:
			# Primed for name
			name_primed = True
			continue
	
	if not len(types):
		return None
	if not len(types) == len(names):
		# Only way this would happen that I've seen so far, is with custom entries
		return None
	partout = ''
	if style.lower() == 'md':
		partout = mdStyle(types, names, escape)
	elif style.lower() == 'mdblock':
		partout = mdBlockStyle(types, names, escape)
	elif style.lower() == 'bold':
		partout = boldStyle(types, names, escape)
	elif style.lower() == 'bolditalic':
		partout = boldItalicStyle(types, names, escape)
	elif style.lower() == 'normal':
		partout = normalStyle(types, names, escape)
	else:
		# No style present
		return None

	return Nullify.escape_all(partout,markdown=False)
