Skip to content

Commit

Permalink
Improved comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed May 25, 2017
1 parent aa678b9 commit a4c0a4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nikola/utils.py
Expand Up @@ -1977,9 +1977,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 a4c0a4a

Please sign in to comment.