Skip to content

Commit

Permalink
Merge pull request #3898 from Gallaecio/1.7
Browse files Browse the repository at this point in the history
Changes and release notes for 1.7.2
  • Loading branch information
kmike committed Jul 23, 2019
2 parents 079164c + 77beab3 commit d0288da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Release notes
.. note:: Scrapy 1.x will be the last series supporting Python 2. Scrapy 2.0,
planned for Q4 2019 or Q1 2020, will support **Python 3 only**.

Scrapy 1.7.2 (2019-07-23)
-------------------------

Fix Python 2 support (:issue:`3889`, :issue:`3893`, :issue:`3896`).


Scrapy 1.7.1 (2019-07-18)
-------------------------

Expand Down
7 changes: 5 additions & 2 deletions scrapy/utils/conf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import os
import sys
import numbers
import configparser
from operator import itemgetter

import six
if six.PY2:
from ConfigParser import SafeConfigParser as ConfigParser
else:
from configparser import ConfigParser

from scrapy.settings import BaseSettings
from scrapy.utils.deprecate import update_classpath
Expand Down Expand Up @@ -94,7 +97,7 @@ def init_env(project='default', set_syspath=True):
def get_config(use_closest=True):
"""Get Scrapy config file as a ConfigParser"""
sources = get_sources(use_closest)
cfg = configparser.ConfigParser()
cfg = ConfigParser()
cfg.read(sources)
return cfg

Expand Down

0 comments on commit d0288da

Please sign in to comment.