We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pip install fails for 0.10.0
*cfn-lint version: (`cfn-lint --version`)*

0.10.0

*Description of issue.*

My pipeline started failing when installing the latest version via pip.

example:

`pip install cfn-lint==0.10.0`

```
[...]
.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    copying regex_3/regex.py -> build/lib.linux-x86_64-3.7
    copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7
    copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7
    running build_ext
    building '_regex' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/regex_3
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-r143_0dz/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-467tj48_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-r143_0dz/regex/
```

Version 0.9.2 works well.

Replicate with:

`docker run --rm -it python:3.7.1-alpine3.8 /bin/sh -c 'pip install cfn-lint==0.10.0'`

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 """
2   Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 
4   Permission is hereby granted, free of charge, to any person obtaining a copy of this
5   software and associated documentation files (the "Software"), to deal in the Software
6   without restriction, including without limitation the rights to use, copy, modify,
7   merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
8   permit persons to whom the Software is furnished to do so.
9 
10   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
11   INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
12   PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
13   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
14   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 """
17 import codecs
18 import re
19 from setuptools import find_packages
20 from setuptools import setup
21 
22 
23 def get_version(filename):
24     with codecs.open(filename, 'r', 'utf-8') as fp:
25         contents = fp.read()
26     return re.search(r"__version__ = ['\"]([^'\"]+)['\"]", contents).group(1)
27 
28 
29 version = get_version('src/cfnlint/version.py')
30 
31 
32 with open('README.md') as f:
33     readme = f.read()
34 
35 setup(
36     name='cfn-lint',
37     version=version,
38     description=('checks cloudformation for practices and behaviour \
39         that could potentially be improved'),
40     long_description=readme,
41     long_description_content_type="text/markdown",
42     keywords='aws, lint',
43     author='kddejong',
44     author_email='kddejong@amazon.com',
45     url='https://github.com/awslabs/cfn-python-lint',
46     package_dir={'': 'src'},
47     package_data={'cfnlint': [
48         'data/CloudSpecs/*.json',
49         'data/AdditionalSpecs/*.json',
50         'data/Serverless/*.json',
51         'data/CfnLintCli/config/schema.json'
52     ]},
53     packages=find_packages('src'),
54     zip_safe=False,
55     install_requires=[
56         'pyyaml',
57         'six~=1.11',
58         'requests>=2.15.0',
59         'aws-sam-translator>=1.8.0',
60         'jsonpatch',
61         'jsonschema~=2.6',
62         'pathlib2>=2.3.0;python_version<"3.4"',
63         'regex>=2018.11.07'
64     ],
65     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
66     entry_points={
67         'console_scripts': [
68             'cfn-lint = cfnlint.__main__:main'
69         ]
70     },
71     license='MIT no attribution',
72     test_suite="unittest",
73     classifiers=[
74         'Development Status :: 5 - Production/Stable',
75         'Intended Audience :: Developers',
76         'License :: OSI Approved :: MIT License',
77         'Natural Language :: English',
78         'Operating System :: OS Independent',
79         'Programming Language :: Python :: 2',
80         'Programming Language :: Python :: 2.7',
81         'Programming Language :: Python :: 3',
82         'Programming Language :: Python :: 3.4',
83         'Programming Language :: Python :: 3.5',
84         'Programming Language :: Python :: 3.6',
85         'Programming Language :: Python :: 3.7',
86     ],
87 )
88
```

Path: `src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py`
Content:
```
1 """
2   Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 
4   Permission is hereby granted, free of charge, to any person obtaining a copy of this
5   software and associated documentation files (the "Software"), to deal in the Software
6   without restriction, including without limitation the rights to use, copy, modify,
7   merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
8   permit persons to whom the Software is furnished to do so.
9 
10   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
11   INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
12   PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
13   HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
14   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
15   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16 """
17 import regex
18 from cfnlint import CloudFormationLintRule
19 from cfnlint import RuleMatch
20 
21 
22 class ManagedPolicyDescription(CloudFormationLintRule):
23     """Check if IAM Policy Description is syntax correct"""
24     id = 'E3507'
25     shortdesc = 'Check if IAM Managed Policy description follows supported regex'
26     description = 'IAM Managed Policy description much comply with the regex [\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*'
27     source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'
28     tags = ['properties', 'iam']
29 
30     def __init__(self):
31         """Init"""
32         super(ManagedPolicyDescription, self).__init__()
33         self.resource_property_types.append('AWS::IAM::ManagedPolicy')
34 
35     def check_value(self, value, path):
36         """Check the value"""
37         regex_string = r'^[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]+$'
38         r = regex.compile(regex_string)
39         if not r.match(value):
40             message = 'ManagedPolicy Description needs to follow regex pattern "{0}"'
41             return [
42                 RuleMatch(path[:], message.format(regex_string))
43             ]
44 
45         return []
46 
47     def match_resource_properties(self, properties, _, path, cfn):
48         """Check CloudFormation Properties"""
49         matches = []
50 
51         matches.extend(
52             cfn.check_value(
53                 obj=properties, key='Description',
54                 path=path[:],
55                 check_value=self.check_value
56             ))
57 
58         return matches
59
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -59,8 +59,7 @@
         'aws-sam-translator>=1.8.0',
         'jsonpatch',
         'jsonschema~=2.6',
-        'pathlib2>=2.3.0;python_version<"3.4"',
-        'regex>=2018.11.07'
+        'pathlib2>=2.3.0;python_version<"3.4"'
     ],
     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
     entry_points={
diff --git a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py b/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
deleted file mode 100644
--- a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py
+++ /dev/null
@@ -1,58 +0,0 @@
-"""
-  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
-
-  Permission is hereby granted, free of charge, to any person obtaining a copy of this
-  software and associated documentation files (the "Software"), to deal in the Software
-  without restriction, including without limitation the rights to use, copy, modify,
-  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
-  permit persons to whom the Software is furnished to do so.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
-  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-"""
-import regex
-from cfnlint import CloudFormationLintRule
-from cfnlint import RuleMatch
-
-
-class ManagedPolicyDescription(CloudFormationLintRule):
-    """Check if IAM Policy Description is syntax correct"""
-    id = 'E3507'
-    shortdesc = 'Check if IAM Managed Policy description follows supported regex'
-    description = 'IAM Managed Policy description much comply with the regex [\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*'
-    source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'
-    tags = ['properties', 'iam']
-
-    def __init__(self):
-        """Init"""
-        super(ManagedPolicyDescription, self).__init__()
-        self.resource_property_types.append('AWS::IAM::ManagedPolicy')
-
-    def check_value(self, value, path):
-        """Check the value"""
-        regex_string = r'^[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]+$'
-        r = regex.compile(regex_string)
-        if not r.match(value):
-            message = 'ManagedPolicy Description needs to follow regex pattern "{0}"'
-            return [
-                RuleMatch(path[:], message.format(regex_string))
-            ]
-
-        return []
-
-    def match_resource_properties(self, properties, _, path, cfn):
-        """Check CloudFormation Properties"""
-        matches = []
-
-        matches.extend(
-            cfn.check_value(
-                obj=properties, key='Description',
-                path=path[:],
-                check_value=self.check_value
-            ))
-
-        return matches

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -59,8 +59,7 @@\n         'aws-sam-translator>=1.8.0',\n         'jsonpatch',\n         'jsonschema~=2.6',\n-        'pathlib2>=2.3.0;python_version<\"3.4\"',\n-        'regex>=2018.11.07'\n+        'pathlib2>=2.3.0;python_version<\"3.4\"'\n     ],\n     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n     entry_points={\ndiff --git a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py b/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py\ndeleted file mode 100644\n--- a/src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py\n+++ /dev/null\n@@ -1,58 +0,0 @@\n-\"\"\"\n-  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n-\n-  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n-  software and associated documentation files (the \"Software\"), to deal in the Software\n-  without restriction, including without limitation the rights to use, copy, modify,\n-  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n-  permit persons to whom the Software is furnished to do so.\n-\n-  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n-  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n-  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n-  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n-  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n-  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-\"\"\"\n-import regex\n-from cfnlint import CloudFormationLintRule\n-from cfnlint import RuleMatch\n-\n-\n-class ManagedPolicyDescription(CloudFormationLintRule):\n-    \"\"\"Check if IAM Policy Description is syntax correct\"\"\"\n-    id = 'E3507'\n-    shortdesc = 'Check if IAM Managed Policy description follows supported regex'\n-    description = 'IAM Managed Policy description much comply with the regex [\\\\p{L}\\\\p{M}\\\\p{Z}\\\\p{S}\\\\p{N}\\\\p{P}]*'\n-    source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'\n-    tags = ['properties', 'iam']\n-\n-    def __init__(self):\n-        \"\"\"Init\"\"\"\n-        super(ManagedPolicyDescription, self).__init__()\n-        self.resource_property_types.append('AWS::IAM::ManagedPolicy')\n-\n-    def check_value(self, value, path):\n-        \"\"\"Check the value\"\"\"\n-        regex_string = r'^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]+$'\n-        r = regex.compile(regex_string)\n-        if not r.match(value):\n-            message = 'ManagedPolicy Description needs to follow regex pattern \"{0}\"'\n-            return [\n-                RuleMatch(path[:], message.format(regex_string))\n-            ]\n-\n-        return []\n-\n-    def match_resource_properties(self, properties, _, path, cfn):\n-        \"\"\"Check CloudFormation Properties\"\"\"\n-        matches = []\n-\n-        matches.extend(\n-            cfn.check_value(\n-                obj=properties, key='Description',\n-                path=path[:],\n-                check_value=self.check_value\n-            ))\n-\n-        return matches\n", "issue": "Pip install fails for 0.10.0\n*cfn-lint version: (`cfn-lint --version`)*\r\n\r\n0.10.0\r\n\r\n*Description of issue.*\r\n\r\nMy pipeline started failing when installing the latest version via pip.\r\n\r\nexample:\r\n\r\n`pip install cfn-lint==0.10.0`\r\n\r\n```\r\n[...]\r\n.txt --single-version-externally-managed --compile:\r\n    running install\r\n    running build\r\n    running build_py\r\n    creating build\r\n    creating build/lib.linux-x86_64-3.7\r\n    copying regex_3/regex.py -> build/lib.linux-x86_64-3.7\r\n    copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7\r\n    copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7\r\n    running build_ext\r\n    building '_regex' extension\r\n    creating build/temp.linux-x86_64-3.7\r\n    creating build/temp.linux-x86_64-3.7/regex_3\r\n    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o\r\n    unable to execute 'gcc': No such file or directory\r\n    error: command 'gcc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nCommand \"/usr/local/bin/python -u -c \"import setuptools, tokenize;__file__='/tmp/pip-install-r143_0dz/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-record-467tj48_/install-record.txt --single-version-externally-managed --compile\" failed with error code 1 in /tmp/pip-install-r143_0dz/regex/\r\n```\r\n\r\nVersion 0.9.2 works well.\r\n\r\nReplicate with:\r\n\r\n`docker run --rm -it python:3.7.1-alpine3.8 /bin/sh -c 'pip install cfn-lint==0.10.0'`\n", "before_files": [{"content": "\"\"\"\n  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n  software and associated documentation files (the \"Software\"), to deal in the Software\n  without restriction, including without limitation the rights to use, copy, modify,\n  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n  permit persons to whom the Software is furnished to do so.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\nimport codecs\nimport re\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version(filename):\n    with codecs.open(filename, 'r', 'utf-8') as fp:\n        contents = fp.read()\n    return re.search(r\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", contents).group(1)\n\n\nversion = get_version('src/cfnlint/version.py')\n\n\nwith open('README.md') as f:\n    readme = f.read()\n\nsetup(\n    name='cfn-lint',\n    version=version,\n    description=('checks cloudformation for practices and behaviour \\\n        that could potentially be improved'),\n    long_description=readme,\n    long_description_content_type=\"text/markdown\",\n    keywords='aws, lint',\n    author='kddejong',\n    author_email='kddejong@amazon.com',\n    url='https://github.com/awslabs/cfn-python-lint',\n    package_dir={'': 'src'},\n    package_data={'cfnlint': [\n        'data/CloudSpecs/*.json',\n        'data/AdditionalSpecs/*.json',\n        'data/Serverless/*.json',\n        'data/CfnLintCli/config/schema.json'\n    ]},\n    packages=find_packages('src'),\n    zip_safe=False,\n    install_requires=[\n        'pyyaml',\n        'six~=1.11',\n        'requests>=2.15.0',\n        'aws-sam-translator>=1.8.0',\n        'jsonpatch',\n        'jsonschema~=2.6',\n        'pathlib2>=2.3.0;python_version<\"3.4\"',\n        'regex>=2018.11.07'\n    ],\n    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n    entry_points={\n        'console_scripts': [\n            'cfn-lint = cfnlint.__main__:main'\n        ]\n    },\n    license='MIT no attribution',\n    test_suite=\"unittest\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: MIT License',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n", "path": "setup.py"}, {"content": "\"\"\"\n  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n  software and associated documentation files (the \"Software\"), to deal in the Software\n  without restriction, including without limitation the rights to use, copy, modify,\n  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n  permit persons to whom the Software is furnished to do so.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\nimport regex\nfrom cfnlint import CloudFormationLintRule\nfrom cfnlint import RuleMatch\n\n\nclass ManagedPolicyDescription(CloudFormationLintRule):\n    \"\"\"Check if IAM Policy Description is syntax correct\"\"\"\n    id = 'E3507'\n    shortdesc = 'Check if IAM Managed Policy description follows supported regex'\n    description = 'IAM Managed Policy description much comply with the regex [\\\\p{L}\\\\p{M}\\\\p{Z}\\\\p{S}\\\\p{N}\\\\p{P}]*'\n    source_url = 'https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html'\n    tags = ['properties', 'iam']\n\n    def __init__(self):\n        \"\"\"Init\"\"\"\n        super(ManagedPolicyDescription, self).__init__()\n        self.resource_property_types.append('AWS::IAM::ManagedPolicy')\n\n    def check_value(self, value, path):\n        \"\"\"Check the value\"\"\"\n        regex_string = r'^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]+$'\n        r = regex.compile(regex_string)\n        if not r.match(value):\n            message = 'ManagedPolicy Description needs to follow regex pattern \"{0}\"'\n            return [\n                RuleMatch(path[:], message.format(regex_string))\n            ]\n\n        return []\n\n    def match_resource_properties(self, properties, _, path, cfn):\n        \"\"\"Check CloudFormation Properties\"\"\"\n        matches = []\n\n        matches.extend(\n            cfn.check_value(\n                obj=properties, key='Description',\n                path=path[:],\n                check_value=self.check_value\n            ))\n\n        return matches\n", "path": "src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py"}], "after_files": [{"content": "\"\"\"\n  Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this\n  software and associated documentation files (the \"Software\"), to deal in the Software\n  without restriction, including without limitation the rights to use, copy, modify,\n  merge, publish, distribute, sublicense, and/or sell copies of the Software, and to\n  permit persons to whom the Software is furnished to do so.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n  PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\"\"\"\nimport codecs\nimport re\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version(filename):\n    with codecs.open(filename, 'r', 'utf-8') as fp:\n        contents = fp.read()\n    return re.search(r\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", contents).group(1)\n\n\nversion = get_version('src/cfnlint/version.py')\n\n\nwith open('README.md') as f:\n    readme = f.read()\n\nsetup(\n    name='cfn-lint',\n    version=version,\n    description=('checks cloudformation for practices and behaviour \\\n        that could potentially be improved'),\n    long_description=readme,\n    long_description_content_type=\"text/markdown\",\n    keywords='aws, lint',\n    author='kddejong',\n    author_email='kddejong@amazon.com',\n    url='https://github.com/awslabs/cfn-python-lint',\n    package_dir={'': 'src'},\n    package_data={'cfnlint': [\n        'data/CloudSpecs/*.json',\n        'data/AdditionalSpecs/*.json',\n        'data/Serverless/*.json',\n        'data/CfnLintCli/config/schema.json'\n    ]},\n    packages=find_packages('src'),\n    zip_safe=False,\n    install_requires=[\n        'pyyaml',\n        'six~=1.11',\n        'requests>=2.15.0',\n        'aws-sam-translator>=1.8.0',\n        'jsonpatch',\n        'jsonschema~=2.6',\n        'pathlib2>=2.3.0;python_version<\"3.4\"'\n    ],\n    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n    entry_points={\n        'console_scripts': [\n            'cfn-lint = cfnlint.__main__:main'\n        ]\n    },\n    license='MIT no attribution',\n    test_suite=\"unittest\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: MIT License',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n", "path": "setup.py"}, {"content": null, "path": "src/cfnlint/rules/resources/iam/ManagedPolicyDescription.py"}]}