@@ -172,7 +172,7 @@ def create_grapheme_data(f):
172172 stype = "&'static [(&'static str, &'static [&'static str])]"
173173 dtype = "&'static [(&'static str, &'static [&'static str], &'static [&'static str])]"
174174 f .write (" // official Unicode test data\n " )
175- f .write (" // http://www.unicode.org/Public/10.0.0 /ucd/auxiliary/GraphemeBreakTest.txt\n " )
175+ f .write (" // http://www.unicode.org/Public/%s /ucd/auxiliary/GraphemeBreakTest.txt\n " % unicode . UNICODE_VERSION_NUMBER )
176176 unicode .emit_table (f , "TEST_SAME" , test_same , stype , True , showfun , True )
177177 unicode .emit_table (f , "TEST_DIFF" , test_diff , dtype , True , showfun , True )
178178
@@ -187,7 +187,7 @@ def create_words_data(f):
187187
188188 wtype = "&'static [(&'static str, &'static [&'static str])]"
189189 f .write (" // official Unicode test data\n " )
190- f .write (" // http://www.unicode.org/Public/10.0.0 /ucd/auxiliary/WordBreakTest.txt\n " )
190+ f .write (" // http://www.unicode.org/Public/%s /ucd/auxiliary/WordBreakTest.txt\n " % unicode . UNICODE_VERSION_NUMBER )
191191 unicode .emit_table (f , "TEST_WORD" , test , wtype , True , showfun , True )
192192
193193def create_sentence_data (f ):
@@ -201,7 +201,7 @@ def create_sentence_data(f):
201201
202202 wtype = "&'static [(&'static str, &'static [&'static str])]"
203203 f .write (" // official Unicode test data\n " )
204- f .write (" // http://www.unicode.org/Public/10.0.0 /ucd/auxiliary/SentenceBreakTest.txt\n " )
204+ f .write (" // http://www.unicode.org/Public/%s /ucd/auxiliary/SentenceBreakTest.txt\n " % unicode . UNICODE_VERSION_NUMBER )
205205 unicode .emit_table (f , "TEST_SENTENCE" , test , wtype , True , showfun , True )
206206
207207if __name__ == "__main__" :
0 commit comments