Skip to content

Commit 7f4cceb

Browse files
committed
Merge branch fix-flake8-3.8.1 of https://github.com/valeriocos/perceval`
Merges #670 Closes #670
2 parents 8ff102a + 87528b3 commit 7f4cceb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

perceval/backends/core/mbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class MBox(Backend):
6666
:param archive: archive to store/retrieve items
6767
:param ssl_verify: enable/disable SSL verification
6868
"""
69-
version = '0.13.0'
69+
version = '0.13.1'
7070

7171
CATEGORIES = [CATEGORY_MESSAGE]
7272

@@ -246,8 +246,8 @@ def _copy_mbox(self, mbox):
246246

247247
with mbox.container as f_in:
248248
with open(tmp_path, mode='wb') as f_out:
249-
for l in f_in:
250-
f_out.write(l)
249+
for line in f_in:
250+
f_out.write(line)
251251
return tmp_path
252252

253253
def _validate_message(self, message):

perceval/backends/core/pipermail.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Pipermail(MBox):
6767
:param archive: archive to store/retrieve items
6868
:param ssl_verify: enable/disable SSL verification
6969
"""
70-
version = '0.11.0'
70+
version = '0.11.1'
7171

7272
CATEGORIES = [CATEGORY_MESSAGE]
7373

@@ -217,8 +217,8 @@ def fetch(self, from_date=DEFAULT_DATETIME):
217217
if not os.path.exists(self.dirpath):
218218
os.makedirs(self.dirpath)
219219

220-
for l in links:
221-
filename = os.path.basename(l)
220+
for link in links:
221+
filename = os.path.basename(link)
222222

223223
mbox_dt = self._parse_date_from_filepath(filename)
224224

@@ -227,10 +227,10 @@ def fetch(self, from_date=DEFAULT_DATETIME):
227227
from_date < mbox_dt):
228228

229229
filepath = os.path.join(self.dirpath, filename)
230-
success = self._download_archive(l, filepath)
230+
success = self._download_archive(link, filepath)
231231

232232
if success:
233-
fetched.append((l, filepath))
233+
fetched.append((link, filepath))
234234

235235
logger.info("%s/%s MBoxes downloaded", len(fetched), len(links))
236236

tests/test_mbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ def copy_mbox_side_effect(*args, **kwargs):
395395

396396
with mbox.container as f_in:
397397
with open(tmp_path, mode='wb') as f_out:
398-
for l in f_in:
399-
f_out.write(l)
398+
for line in f_in:
399+
f_out.write(line)
400400
return tmp_path
401401

402402
shutil.copy(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data/mbox/mbox_single.mbox'),

tests/test_nntp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def article(self, article_id):
9595
raise nntplib.NNTPTemporaryError('not found')
9696

9797
with open(a[1], 'rb') as f:
98-
lines = [l.rstrip() for l in f]
98+
lines = [line.rstrip() for line in f]
9999
return None, MockArticleInfo(article_id, message_id, lines)
100100

101101
def quit(self):

0 commit comments

Comments
 (0)