File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,10 @@ def _get_fileobj_mtime(self, fileobj):
155
155
return '{}_{}' .format (fileobj .name , local_mtime )
156
156
157
157
def _get_times_tuple (self , filestr ): # get epoch from string someth_YYYY-MM-DD_HHMMMSS
158
- time = re .split ('[^\d]' , filestr )[- 1 ]
159
- day = re .split ('[^\d]' , filestr )[- 2 ]
160
- month = re .split ('[^\d]' , filestr )[- 3 ]
161
- year = re .split ('[^\d]' , filestr )[- 4 ]
158
+ time = re .split (r '[^\d]' , filestr )[- 1 ]
159
+ day = re .split (r '[^\d]' , filestr )[- 2 ]
160
+ month = re .split (r '[^\d]' , filestr )[- 3 ]
161
+ year = re .split (r '[^\d]' , filestr )[- 4 ]
162
162
filestr_date_digits = "{}{}{}{}" .format (year , month , day , time )
163
163
log .debug ('Sync._get_times_tuple: filestr_date_digits: {}' .format (filestr_date_digits ))
164
164
if not filestr_date_digits :
You can’t perform that action at this time.
0 commit comments