@classmethod<EOL><INDENT>def _convert_to_side(cls, side_spec):<DEDENT>
from openpyxl.styles import Side<EOL>_side_key_map = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>if isinstance(side_spec, str):<EOL><INDENT>return Side(style=side_spec)<EOL><DEDENT>side_kwargs = {}<EOL>for k, v in side_spec.items():<EOL><INDENT>if k in _side_key_map:<EOL><INDENT>k = _side_key_map[k]<EOL><DEDENT>if k == '<STR_LIT>':<EOL><INDENT>v = cls._convert_to_color(v)<EOL><DEDENT>side_kwargs[k] = v<EOL><DEDENT>return Side(**side_kwargs)<EOL>
Convert ``side_spec`` to an openpyxl v2 Side object
Parameters
----------
side_spec : str, dict
    A string specifying the border style, or a dict with zero or more
    of the following keys (or their synonyms).
        'style' ('border_style')
        'color'
Returns
-------
side : openpyxl.styles.Side