mirror of
https://github.com/novoid/date2name.git
synced 2026-06-14 11:01:19 +00:00
small bugfix
This commit is contained in:
parent
b9292dcc8d
commit
b2563e0719
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Time-stamp: <2012-04-04 19:03:05 vk>
|
||||
# Time-stamp: <2012-04-05 15:07:43 vk>
|
||||
|
||||
"""
|
||||
date2name
|
||||
|
|
@ -169,8 +169,8 @@ def generate_new_basename(formatstring, basename):
|
|||
"""generates the new itemname; considering options.nocorrections"""
|
||||
|
||||
if options.nocorrections or NODATESTAMP_PATTERN.match(basename):
|
||||
logging.debug("basename \"%s\" matches nodatestamp-pattern or option nocorrections " + \
|
||||
"is set: skipping further pattern matching" % basename)
|
||||
logging.debug("basename \"" + basename + "\" matches nodatestamp-pattern or option nocorrections " + \
|
||||
"is set: skipping further pattern matching")
|
||||
new_basename = get_timestamp_from_file(formatstring, basename)
|
||||
|
||||
elif WITHTIME_PATTERN.match(basename):
|
||||
|
|
|
|||
Loading…
Reference in a new issue