summaryrefslogtreecommitdiffstats
path: root/pyload/Core.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
commite1c22fad3fffb485da400e4b34c094f201a2c72e (patch)
treed360610cdf65e2f1906d3cc9c891f6b80066859d /pyload/Core.py
parentPEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff)
downloadpyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz
range -> xrange
Diffstat (limited to 'pyload/Core.py')
-rwxr-xr-xpyload/Core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/Core.py b/pyload/Core.py
index 481026a68..d1404d00f 100755
--- a/pyload/Core.py
+++ b/pyload/Core.py
@@ -612,7 +612,7 @@ class Core(object):
self.shutdown()
chdir(owd)
# close some open fds
- for i in range(3, 50):
+ for i in xrange(3, 50):
try:
close(i)
except Exception:
@@ -678,7 +678,7 @@ def deamon():
sys.exit(1)
# Iterate through and close some file descriptors.
- for fd in range(0, 3):
+ for fd in xrange(0, 3):
try:
os.close(fd)
except OSError: # ERROR, fd wasn't open to begin with (ignored)