Description: Fix build failure due to missing assert definition
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2025-10-13

Index: sumo-1_25_0/tools/contributed/sumopy/agilepy/lib_misc/docgen.py
===================================================================
--- sumo-1_25_0.orig/tools/contributed/sumopy/agilepy/lib_misc/docgen.py
+++ sumo-1_25_0/tools/contributed/sumopy/agilepy/lib_misc/docgen.py
@@ -90,7 +90,7 @@ class Document:
         if self.preample:
             self.f.write(preample+"""\n\\begin{document}\n""")
             if self.is_maketitle:
-                self.f.write("""\n\maketitle""")
+                self.f.write(r"""\n\maketitle""")
         # return self.f
         self.is_compile = is_compile
 
@@ -162,7 +162,7 @@ class Document:
                     self.add_tabular_row([attrconfig.get_name(),
                                           symbol,
                                           attrconfig.format_value()
-                                          + "$\,%s$" % attrconfig.format_unit(show_parentesis=False),
+                                          + r"$\,%s$" % attrconfig.format_unit(show_parentesis=False),
                                           ])
         self.end_tabular()
 
Index: sumo-1_25_0/tools/contributed/sumopy/coremodules/network/networktools.py
===================================================================
--- sumo-1_25_0.orig/tools/contributed/sumopy/coremodules/network/networktools.py
+++ sumo-1_25_0/tools/contributed/sumopy/coremodules/network/networktools.py
@@ -540,7 +540,7 @@ class TlsGenerator(netconvert.NetConvert
         #self.id_mode_ped = net.modes.get_id_mode("pedestrian")
         #self.id_mode_car = net.modes.get_id_mode("passenger")
 
-        print '\n  generate routes across the TLS'
+        print('\n  generate routes across the TLS')
         #costs = edges.get_times( id_mode = self.id_mode_car , is_check_lanes = True, speed_max = None)
         # use bus here so we can route also on reserved lanes
         costs = edges.get_times(id_mode=self.id_mode_bus, is_check_lanes=True, speed_max=None)
@@ -2234,7 +2234,7 @@ class TlsjunctionGenerator_old(netconver
         return (priority >= 7) & (n_lanes >= 1) & (speed_max >= 30/3.6)
 
     def search_main_backward(self, id_edge, dist, tree):
-        """
+        r"""
         |
         O
         |\
Index: sumo-1_25_0/tools/contributed/sumopy/plugins/mapmatching/results_mpl.py
===================================================================
--- sumo-1_25_0.orig/tools/contributed/sumopy/plugins/mapmatching/results_mpl.py
+++ sumo-1_25_0/tools/contributed/sumopy/plugins/mapmatching/results_mpl.py
@@ -1107,7 +1107,7 @@ class SpeedprofilePlotter(PlotoptionsMix
                                 label += ' $T_J=%ds$' % time_wait_junc
 
                             if self.is_waitslabel_tls & (time_wait_tls > 0):
-                                label += ' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
+                                label += r' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
 
                             ax2.text(t_last+2, ymin, label,
                                      verticalalignment='bottom',
@@ -1147,7 +1147,7 @@ class SpeedprofilePlotter(PlotoptionsMix
 ##
 
                             if self.is_waitslabel_tls & (time_wait_tls > 0):
-                                label += ' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
+                                label += r' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
 
                             ax2.text(t_last+2, ymin, label,
                                      verticalalignment='bottom',
@@ -1208,7 +1208,7 @@ class SpeedprofilePlotter(PlotoptionsMix
                             label += ' $T_J=%ds$' % time_wait_junc
 
                         if self.is_waitslabel_tls & (time_wait_tls > 0):
-                            label += ' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
+                            label += r' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
 
                         print('  id_edge', id_arc, 'pos=%df' % cumulative_dist, 'time_wait', time_wait, 'time_wait_junc', time_wait_junc, 'time_wait_tls', time_wait_tls)
 
@@ -1235,7 +1235,7 @@ class SpeedprofilePlotter(PlotoptionsMix
     ##                            label += ' $T_J=%ds$'%time_wait_junc
 
                         if self.is_waitslabel_tls & (time_wait_tls > 0):
-                            label += ' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
+                            label += r' $T_{\mathrm{TL}}=%ds$' % time_wait_tls
 
                         print('  id_connection', id_arc, 'pos=%df' % x, 'time_wait', time_wait, 'time_wait_junc', time_wait_junc, 'time_wait_tls', time_wait_tls)
 
@@ -2472,9 +2472,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = 10.0  # max(np.max(matched),np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2510,9 +2510,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2547,9 +2547,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2584,9 +2584,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = 15.0  # max(np.max(matched),np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2621,9 +2621,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2658,9 +2658,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2791,9 +2791,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(dists_match), np.max(dists_shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, dists_match, bins=bins, color=self.color_matched,
-                                    label='matched:'+'$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_match), np.std(dists_match)))
+                                    label='matched:'+r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_match), np.std(dists_match)))
         bincenters = self.plot_hist(ax, dists_shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_shortest), np.std(dists_shortest)))
+                                    r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_shortest), np.std(dists_shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2838,9 +2838,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(times_fastest), np.max(times_match))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, times_match, bins=bins, color=self.color_matched,
-                                    label='matched:'+'$\mu = %dm$, $\sigma=%dm$' % (np.mean(times_match), np.std(times_match)))
+                                    label='matched:'+r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(times_match), np.std(times_match)))
         bincenters = self.plot_hist(ax, times_fastest, bins=bins, color=self.color_fastest, label='fastest:' +
-                                    '$\mu = %dm$, $\sigma=%dm$' % (np.mean(times_fastest), np.std(times_fastest)))
+                                    r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(times_fastest), np.std(times_fastest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -2877,14 +2877,14 @@ class RouteresultPlotter(PlotoptionsMixi
         bincenters = self.plot_hist(ax, dists_match, bins=bins,
                                     color=self.color_matched,
                                     label='matched:' +
-                                    '$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_match), np.std(dists_match)),
+                                    r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_match), np.std(dists_match)),
                                     is_rel_frequ=True,
                                     is_percent=True,
                                     )
         bincenters = self.plot_hist(ax, dists_shortest, bins=bins,
                                     color=self.color_shortest,
                                     label='shortest:' +
-                                    '$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_shortest), np.std(dists_shortest)),
+                                    r'$\mu = %dm$, $\sigma=%dm$' % (np.mean(dists_shortest), np.std(dists_shortest)),
                                     is_rel_frequ=True,
                                     is_percent=True,
                                     )
@@ -3064,9 +3064,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = 10.0  # max(np.max(matched),np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -3103,9 +3103,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -3142,9 +3142,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f/km$, $\sigma=%.2f/km$' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -3182,9 +3182,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = 15.0  # max(np.max(matched),np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -3222,9 +3222,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
@@ -3262,9 +3262,9 @@ class RouteresultPlotter(PlotoptionsMixi
         x_max = max(np.max(matched), np.max(shortest))
         bins = np.linspace(x_min, x_max, self.n_bins)
         bincenters = self.plot_hist(ax, matched, bins=bins, color=self.color_matched, label='matched:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(matched), np.std(matched)))
         bincenters = self.plot_hist(ax, shortest, bins=bins, color=self.color_shortest, label='shortest:' +
-                                    '$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
+                                    r'$\mu = %.2f$%%, $\sigma=%.2f$%%' % (np.mean(shortest), np.std(shortest)))
 
         ax.legend(loc='best', shadow=True, fontsize=self.size_labelfont)
         ax.grid(self.is_grid)
Index: sumo-1_25_0/tools/contributed/sumopy/sumopy_gui.py
===================================================================
--- sumo-1_25_0.orig/tools/contributed/sumopy/sumopy_gui.py
+++ sumo-1_25_0/tools/contributed/sumopy/sumopy_gui.py
@@ -67,13 +67,13 @@ use for debugging:
 """
 print('                   _                         ')
 print('       ____________|______|||___________________      ')
-print('      /      _     |              / \  _ _ _ _ _ \     ')
-print('     /       |   / | \     v     / _ \ _|_|_|_|_ /     ')
-print('     \   __o-o__/  |  \  \ | /  / / \ \     ____/      ')
-print('      \        / \|o|/ \  \|/  / / o/\ \   |   _|__/_  ')
-print('       \      /  \|o|/  \  |  / / /|  \ \  |  | |      ')
-print('   | | | | | /   \|0|/   \ v /  \_/ \_/  \_|    |      ')
-print('   | | | | |/_____________\_/____________/ ____/       ')
+print(r'      /      _     |              / \  _ _ _ _ _ \     ')
+print(r'     /       |   / | \     v     / _ \ _|_|_|_|_ /     ')
+print(r'     \   __o-o__/  |  \  \ | /  / / \ \     ____/      ')
+print(r'      \        / \|o|/ \  \|/  / / o/\ \   |   _|__/_  ')
+print(r'       \      /  \|o|/  \  |  / / /|  \ \  |  | |      ')
+print(r'   | | | | | /   \|0|/   \ v /  \_/ \_/  \_|    |      ')
+print(r'   | | | | |/_____________\_/____________/ ____/       ')
 print('                                         |/             ')
 print('')
 print(__appname__+' version '+__version__+'\n'+__copyright__)
