1.1 --- a/common.py Tue Jun 22 23:03:52 2021 +0200
1.2 +++ b/common.py Tue Jun 22 23:36:04 2021 +0200
1.3 @@ -3,8 +3,7 @@
1.4 """
1.5 Common functions.
1.6
1.7 -Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
1.8 - 2017, 2018, 2019 Paul Boddie <paul@boddie.org.uk>
1.9 +Copyright (C) 2007-2019, 2021 Paul Boddie <paul@boddie.org.uk>
1.10
1.11 This program is free software; you can redistribute it and/or modify it under
1.12 the terms of the GNU General Public License as published by the Free Software
1.13 @@ -1595,7 +1594,9 @@
1.14
1.15 "Return the module name containing the given type 'name'."
1.16
1.17 - if name == "string":
1.18 + if name == "integer":
1.19 + modname = "int"
1.20 + elif name == "string":
1.21 modname = "str"
1.22 elif name == "utf8string":
1.23 modname = "unicode"
1.24 @@ -1610,7 +1611,9 @@
1.25
1.26 "Return the type name provided by the given Python value 'name'."
1.27
1.28 - if name == "str":
1.29 + if name == "int":
1.30 + return "integer"
1.31 + elif name == "str":
1.32 return "string"
1.33 elif name == "unicode":
1.34 return "utf8string"