You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
349 B
26 lines
349 B
# Test file locations
|
|
from gettext import gettext as _
|
|
|
|
# Duplicate strings
|
|
_('foo')
|
|
_('foo')
|
|
|
|
# Duplicate strings on the same line should only add one location to the output
|
|
_('bar'), _('bar')
|
|
|
|
|
|
# Duplicate docstrings
|
|
class A:
|
|
"""docstring"""
|
|
|
|
|
|
def f():
|
|
"""docstring"""
|
|
|
|
|
|
# Duplicate message and docstring
|
|
_('baz')
|
|
|
|
|
|
def g():
|
|
"""baz"""
|
|
|