comparison i18n/polib.py @ 51690:493034cc3265

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents 642e31cb55f0
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
61 def b(s): 61 def b(s):
62 return s 62 return s
63 63
64 def u(s): 64 def u(s):
65 return unicode(s, "unicode_escape") 65 return unicode(s, "unicode_escape")
66
67 66
68 else: 67 else:
69 PY3 = True 68 PY3 = True
70 text_type = str 69 text_type = str
71 70
1887 # Arrange in reverse order so items can be efficiently popped 1886 # Arrange in reverse order so items can be efficiently popped
1888 # from a stack of chucks. 1887 # from a stack of chucks.
1889 chunks.reverse() 1888 chunks.reverse()
1890 1889
1891 while chunks: 1890 while chunks:
1892
1893 # Start the list of chunks that will make up the current line. 1891 # Start the list of chunks that will make up the current line.
1894 # cur_len is just the length of all the chunks in cur_line. 1892 # cur_len is just the length of all the chunks in cur_line.
1895 cur_line = [] 1893 cur_line = []
1896 cur_len = 0 1894 cur_len = 0
1897 1895