~duplicity-team/duplicity/0.7-series

« back to all changes in this revision

Viewing changes to testing/overrides/gettext.py

  • Committer: Kenneth Loafman
  • Date: 2014-12-12 14:39:54 UTC
  • Revision ID: kenneth@loafman.com-20141212143954-wyln65yd1ynzsrlx
* Source formatted, using PyDev, all source files to fix some easily fixed
  PEP8 issues. Use ignore space when comparing against previous versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# if we ever get a unicode->ascii translation by accident.
24
24
 
25
25
def install(*args, **kwargs):
26
 
    ZWSP = u"​" # ZERO WIDTH SPACE, basically an invisible space separator
 
26
    ZWSP = u"​"  # ZERO WIDTH SPACE, basically an invisible space separator
27
27
    import __builtin__
28
28
    __builtin__.__dict__['_'] = lambda x: x + ZWSP
29
29
    __builtin__.__dict__['ngettext'] = lambda one, more, n: one + ZWSP if n == 1 else more + ZWSP