Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 4da756ed85bc754eb4ca754fc56f067620d13a76
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Dec 11 19:51:49 2012 +0100
Little code formatting change
---------------------------------------------------------------
fedocal/__init__.py | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/fedocal/__init__.py b/fedocal/__init__.py
index ea2f80b..74f72a3 100644
--- a/fedocal/__init__.py
+++ b/fedocal/__init__.py
@@ -190,18 +190,15 @@ def calendar_list(calendar_name, year, month, day):
:arg month: the month of the date one would like to consult.
:arg day: the day of the date one would like to consult.
"""
+ inyear = year
if not year:
inyear = datetime.date.today().year
- else:
- inyear = year
+ inmonth = month
if not month:
inmonth = 1
- else:
- inmonth = month
+ inday = day
if not day:
inday = 1
- else:
- inday = day
start_date = datetime.date(inyear, inmonth, inday)
if not month and not day:
end_date = start_date + relativedelta(years=+1)