Skip to content

Commit 8d83800

Browse files
committed
maybe better not change the function signature...
1 parent 21bc8f9 commit 8d83800

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readthedocs/cdn/purge.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ def chunks(in_list, chunk_size):
2121
from maxcdn import MaxCDN
2222
api = MaxCDN(CDN_USERNAME, CDN_KEY, CDN_SECRET)
2323

24-
def purge(zoneid, files):
24+
# pylint: disable=redefined-builtin
25+
26+
def purge(id, files):
2527
# We can only purge up to 250 files per request
2628
for chunk in chunks(files, 200):
27-
return api.purge(zoneid, chunk)
29+
return api.purge(id, chunk)
2830
else:
2931
def purge(*__):
3032
log.error("CDN not configured, can't purge files")

0 commit comments

Comments
 (0)