Skip to content

Commit

Permalink
Improved comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 6, 2017
1 parent d61f80b commit 5d723b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nikola/utils.py
Expand Up @@ -2018,9 +2018,10 @@ def has_translations(self, classification, lang):
"""Return whether we know about the classification in that language.
Note that this function returning ``True`` does not mean that
``get_translations`` returns a non-empty list, but only that
this classification was explicitly added with ``add_translation``
at some point.
``get_translations`` returns a non-empty dict or that
``get_translations_as_list`` returns a non-empty list, but only
that this classification was explicitly added with
``add_translation`` at some point.
"""
return self._data[lang].get(classification) is not None

Expand Down

0 comments on commit 5d723b9

Please sign in to comment.