mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from custcol trunk
This commit is contained in:
commit
43caa815e6
@ -375,14 +375,10 @@ class BulkText(BulkBase):
|
||||
ans = original_value
|
||||
vals = [v.strip() for v in unicode(self.adding_widget.text()).split(',')]
|
||||
for t in vals:
|
||||
print 'adding', t
|
||||
if t not in ans:
|
||||
ans.append(t)
|
||||
print ans
|
||||
vals = [v.strip() for v in unicode(self.removing_widget.text()).split(',')]
|
||||
print 'removing', vals
|
||||
for t in vals:
|
||||
print 'deleting', t
|
||||
if t in ans:
|
||||
ans.remove(t)
|
||||
return ans
|
||||
|
@ -25,7 +25,13 @@ class SafeLocalTimeZone(tzlocal):
|
||||
return False
|
||||
|
||||
def compute_locale_info_for_parse_date():
|
||||
try:
|
||||
dt = datetime.strptime('1/5/2000', "%x")
|
||||
except ValueError:
|
||||
try:
|
||||
dt = datetime.strptime('1/5/01', '%x')
|
||||
except:
|
||||
return False
|
||||
if dt.month == 5:
|
||||
return True
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user