Commit 70b68c4c authored by Grant Paton-Simpson's avatar Grant Paton-Simpson

Fix 3.6 compatibility bugs

parent f717aa21
Pipeline #553 failed with stages
# https://git.nzoss.org.nz/pyGrant/superhelp
version number: 0.1.13
version number: 0.1.14
author: Grant Paton-Simpson
## Overview
......
......@@ -2,7 +2,7 @@ from setuptools import setup, find_packages # @UnresolvedImport
from codecs import open
from os import path
__version__ = '0.1.13'
__version__ = '0.1.14'
here = path.abspath(path.dirname(__file__))
......
......@@ -6,6 +6,8 @@ from ..utils import get_python_version, int2nice, layout_comment as layout
def get_string_3_7(comparison_el):
string = comparison_el.get('s')
if not string:
return None
return string
def get_string_3_8(comparison_el):
......@@ -17,7 +19,9 @@ def get_string_3_8(comparison_el):
return string
def get_num_3_7(comparison_el):
num = comparison_el['n']
num = comparison_el.get('n')
if not num:
return None
return num
def get_num_3_8(comparison_el):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment