feat(py3): Cleanup redundant string cast
I confirmed that `add_version(...)` itself calls `str(...)` on the argument that `things_version` is passed in to under both the Python 2.7 and Python 3.6 version of the library so this is unnecessary here. This results in an empty diff in py3 tests output.
This commit is contained in:
parent
3f297bf0e3
commit
447881a0e0
|
@ -0,0 +1 @@
|
|||
Cleanup casting to string for better Python 3 compatibility.
|
|
@ -70,7 +70,7 @@ def _common_valid_config():
|
|||
# Add our application versions to the data that Foolscap's LogPublisher
|
||||
# reports.
|
||||
for thing, things_version in get_package_versions().items():
|
||||
app_versions.add_version(thing, str(things_version))
|
||||
app_versions.add_version(thing, things_version)
|
||||
|
||||
# group 1 will be addr (dotted quad string), group 3 if any will be portnum (string)
|
||||
ADDR_RE = re.compile("^([1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*)(:([1-9][0-9]*))?$")
|
||||
|
|
Loading…
Reference in New Issue