[master 2/4] Remove iutil.xprogressive_delay.
dashea
installerbot-noreply at redhat.com
Fri Jul 17 19:18:43 UTC 2015
From: David Shea <dshea at redhat.com>
This was only used by anaconda-yum to retry downloads, and package
downloads are no longer our job.
---
pyanaconda/iutil.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index e946074..a0b41af 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -1209,20 +1209,6 @@ def __setattr__(self, attr, value):
def copy(self):
return DataHolder(**dict.copy(self))
-def xprogressive_delay():
- """ A delay generator, the delay starts short and gets longer
- as the internal counter increases.
- For example for 10 retries, the delay will increases from
- 0.5 to 256 seconds.
-
- :param int retry_number: retry counter
- :returns float: time to wait in seconds
- """
- counter = 1
- while True:
- yield 0.25*(2**counter)
- counter += 1
-
def get_platform_groupid():
""" Return a platform group id string
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/821e8cd2f3498dbfb18be35e62c7dd61c5e18d92
More information about the anaconda-patches
mailing list