#1068 Use already existing variable instead of calling len again

Open ArcLightSlavik
Showing 1 of 3 files from the diff.

@@ -333,7 +333,7 @@
Loading
333 333
        pos = 0
334 334
        comp = -1
335 335
336 -
        if len(timestr) < 2:
336 +
        if len_str < 2:
337 337
            raise ValueError('ISO time too short')
338 338
339 339
        has_sep = len_str >= 3 and timestr[2:3] == self._TIME_SEP

Learn more Showing 1 files with coverage changes found.

Changes in dateutil/test/_common.py
-4
+4
Loading file...
Files Coverage
dateutil -0.05% 95.94%
Project Totals (32 files) 95.94%
Loading