/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/export_pot.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
import inspect
32
32
import os
33
 
import sys
34
33
 
35
34
import breezy
36
35
from . import (
88
87
            # string terminates on. It's more useful to have the line the
89
88
            # string begins on. Unfortunately, counting back newlines is
90
89
            # only an approximation as the AST is ignorant of escaping.
91
 
            str_to_lineno[node.s] = node.lineno - (0 if sys.version_info >= (3, 8) else node.s.count('\n'))
 
90
            str_to_lineno[node.s] = node.lineno - node.s.count('\n')
92
91
    return cls_to_lineno, str_to_lineno
93
92
 
94
93