Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from pattern3.search import search throws IndentationError: expected an indented block error #46

Open
Code4SAFrankie opened this issue Jul 27, 2019 · 1 comment

Comments

@Code4SAFrankie
Copy link

from pattern3.search import search

throws the error

Traceback (most recent call last):
File "", line 1, in
File "E:\WPy-3710\python-3.7.1.amd64\lib\site-packages\pattern3\text\search.py", line 273
except ImportError:
^
IndentationError: expected an indented block

on

WinPython 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32

and on

Ubuntu
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]

@Code4SAFrankie
Copy link
Author

Seems to be due to an empty try block:

def itervalues(self):
    try:
        
    except ImportError:
        imap = map
    return map(self.__getitem__, reversed(self._o))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant