Skip to content

Commit 94e4dc7

Browse files
committed
Python3 is more ticklish about comparing strings to None than Py2. Fixed an issue with this in generate_sort_key() for document searches.
- Legacy-Id: 17373
1 parent b6d8bad commit 94e4dc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/utils_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2016-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2016-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44

@@ -185,7 +185,7 @@ def num(i):
185185
else:
186186
res.append(d.type_id);
187187
res.append("-");
188-
res.append(d.get_state_slug());
188+
res.append(d.get_state_slug() or '');
189189
res.append("-");
190190

191191
if sort_key == "title":

0 commit comments

Comments
 (0)