Skip to content

Commit 9ceccb1

Browse files
author
Fernando Ojeda
committed
Refactor cdn network.
1 parent 3ef580e commit 9ceccb1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

SoftLayer/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,12 @@ def timestamp(date):
327327

328328

329329
def days_to_datetime(days):
330-
""" Returns the datetime value of last N days.
330+
"""Returns the datetime value of last N days.
331331
332332
:param int days: From 0 to N days
333333
:returns int: The datetime of last N days or datetime.now() if days <= 0.
334334
"""
335+
335336
date = datetime.datetime.now()
336337

337338
if days > 0:

tests/managers/cdn_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
:license: MIT, see LICENSE for more details.
66
"""
77

8+
from SoftLayer.managers import cdn
89
from SoftLayer import testing
910
from SoftLayer import utils
10-
from SoftLayer.managers import cdn
1111

1212

1313
class CDNTests(testing.TestCase):

0 commit comments

Comments
 (0)