[hamster-applet] Fix unpacking of strings with too many dashes
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] Fix unpacking of strings with too many dashes
- Date: Fri, 13 May 2011 19:00:38 +0000 (UTC)
commit a792e7645842891c66b5b524ea844159c1f6a6fd
Author: immerrr <immerrr gmail com>
Date: Mon Apr 25 14:39:22 2011 +0400
Fix unpacking of strings with too many dashes
src/hamster/lib/stuff.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/lib/stuff.py b/src/hamster/lib/stuff.py
index d874d82..8887a4e 100644
--- a/src/hamster/lib/stuff.py
+++ b/src/hamster/lib/stuff.py
@@ -278,7 +278,7 @@ class Fact(object):
else:
if potential_time.find("-") > 0:
- potential_time, potential_end_time = potential_time.split("-", 2)
+ potential_time, potential_end_time = potential_time.split("-", 1)
self.end_time = figure_time(potential_end_time)
self.start_time = figure_time(potential_time)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]