Skip to content
Snippets Groups Projects
Commit e13e3fa3 authored by Shachar Ohana's avatar Shachar Ohana
Browse files

#250 - Added configparser backport from py3

parent 65b66b2e
No related branches found
No related tags found
No related merge requests found
snowballstemmer==1.2.1
configparser==3.5.0
Loading
Loading
@@ -7,10 +7,7 @@ from collections import Set, namedtuple
from re import compile as re
 
 
try: # Python 2.x
from ConfigParser import RawConfigParser
except ImportError: # Python 3.x
from configparser import RawConfigParser
from configparser import RawConfigParser
 
 
from .utils import __version__, log
Loading
Loading
@@ -453,10 +450,10 @@ class ConfigurationParser(object):
 
try:
for part in code_parts:
# Dealing with split-lined configurations. The part might begin
# with a whitespace and/or a comment marker.
# Dealing with split-lined configurations; The part might begin
# with a whitespace due to the newline character.
part = part.strip()
if not part or part.startswith(('#', ';')):
if not part:
continue
 
codes_to_add = {code for code in codes
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment