File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2014-2025 Kenneth S. Kundert
3+ Copyright (c) 2014-2026 Kenneth S. Kundert
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 4848
4949# General information about the project.
5050project = u'inform'
51- copyright = u'2017-2025 , Ken Kundert'
51+ copyright = u'2017-2026 , Ken Kundert'
5252
5353# The version info for the project you're documenting, acts as replacement for
5454# |version| and |release|, also used in various other places throughout the
Original file line number Diff line number Diff line change 33#
44# Utilities for communicating directly with the user.
55# Documentation can be found at inform.readthedocs.io.
6- #
7- # Copyright (c) 2014-2025 Kenneth S. Kundert
6+
7+ # License {{{1
8+ # Copyright (c) 2014-2026 Kenneth S. Kundert
89# This software is licensed under the `MIT Licents <https://mit-license.org>`_.
910
1011# Imports {{{1
@@ -1143,6 +1144,8 @@ def did_you_mean(invalid_str, valid_strs):
11431144
11441145 """
11451146 from difflib import SequenceMatcher
1147+ if not valid_strs :
1148+ return "" # or "Ø" # null set
11461149 similarity = lambda x : SequenceMatcher (a = invalid_str , b = x ).ratio ()
11471150 return max (valid_strs , key = similarity )
11481151
@@ -3813,3 +3816,5 @@ def __getattr__(self, name):
38133816 if name .startswith ('__' ):
38143817 raise AttributeError (name )
38153818 return self .kwargs .get (name )
3819+
3820+ # vim: set sw=4 sts=4 tw=80 fo=ntcqwa12 et spell:
You can’t perform that action at this time.
0 commit comments