Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Fix linting issues in items.py
Browse files Browse the repository at this point in the history
  • Loading branch information
prncc committed Feb 2, 2018
1 parent 65e9214 commit 1e4918e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions steam/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, chars=' \r\t\n'):
def __call__(self, value):
try:
return value.strip(self.chars)
except:
except: # noqa E722
return value


Expand Down Expand Up @@ -46,7 +46,7 @@ def standardize_date(x):
fmt_fail = True

if fmt_fail:
logger.debug(f"Could not process date {x}")
logger.debug(f'Could not process date {x}')

return x

Expand All @@ -55,14 +55,14 @@ def str_to_float(x):
x = x.replace(',', '')
try:
return float(x)
except:
except: # noqa E722
return x


def str_to_int(x):
try:
return int(str_to_float(x))
except:
except: # noqa E722
return x


Expand Down Expand Up @@ -146,7 +146,7 @@ class ReviewItem(scrapy.Item):


class ProductItemLoader(ItemLoader):
default_output_processor=Compose(TakeFirst(), StripText())
default_output_processor = Compose(TakeFirst(), StripText())


class ReviewItemLoader(ItemLoader):
Expand Down

0 comments on commit 1e4918e

Please sign in to comment.