-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
closed-for-stalenessenhancementfeature-requestA feature should be added or improved.A feature should be added or improved.
Description
There are DeprecationWarning due to invalid escape sequences.
find . -iname '*.py' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./awscli/shorthand.py:106: DeprecationWarning: invalid escape sequence \!
_START_WORD = u'\!\#-&\(-\+\--\<\>-Z\\\\-z\u007c-\uffff'
./awscli/shorthand.py:107: DeprecationWarning: invalid escape sequence \s
_FIRST_FOLLOW_CHARS = u'\s\!\#-&\(-\+\--\\\\\^-\|~-\uffff'
./awscli/shorthand.py:108: DeprecationWarning: invalid escape sequence \s
_SECOND_FOLLOW_CHARS = u'\s\!\#-&\(-\+\--\<\>-\uffff'
./awscli/customizations/codedeploy/push.py:65: DeprecationWarning: invalid escape sequence \<
'uploading. Use the format s3://\<bucket\>/\<key\>'
./awscli/customizations/emr/createcluster.py:183: DeprecationWarning: invalid escape sequence \d
is_valid_ami_version = re.match('\d?\..*', parsed_args.ami_version)
./awscli/customizations/cloudtrail/validation.py:76: DeprecationWarning: invalid escape sequence \d
pattern = re.compile('arn:.+:cloudtrail:.+:\d{12}:trail/.+')
./awscli/compat.py:452: DeprecationWarning: invalid escape sequence \s
_distributor_id_file_re = re.compile("(?:DISTRIB_ID\s*=)\s*(.*)", re.I)
./awscli/compat.py:453: DeprecationWarning: invalid escape sequence \s
_release_file_re = re.compile("(?:DISTRIB_RELEASE\s*=)\s*(.*)", re.I)
./awscli/compat.py:454: DeprecationWarning: invalid escape sequence \s
_codename_file_re = re.compile("(?:DISTRIB_CODENAME\s*=)\s*(.*)", re.I)
./tests/unit/test_alias.py:101: DeprecationWarning: invalid escape sequence \
' my-alias-value \ \n'
./tests/unit/test_paramfile.py:96: DeprecationWarning: invalid escape sequence \.
with self.assertRaisesRegexp(ResourceLoadingError, 'foo\.bar\.baz'):
./tests/unit/test_paramfile.py:101: DeprecationWarning: invalid escape sequence \.
with self.assertRaisesRegexp(ResourceLoadingError, 'foo\.bar\.baz'):
./tests/unit/customizations/s3/test_utils.py:331: DeprecationWarning: invalid escape sequence \.
with self.assertRaisesRegexp(ValueError, 'myfilename\.txt'):
./tests/unit/customizations/configure/test_list.py:34: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(rendered, 'profile\s+<not set>')
./tests/unit/customizations/configure/test_list.py:35: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(rendered, 'access_key\s+<not set>')
./tests/unit/customizations/configure/test_list.py:36: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(rendered, 'secret_key\s+<not set>')
./tests/unit/customizations/configure/test_list.py:37: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(rendered, 'region\s+<not set>')
./tests/unit/customizations/configure/test_list.py:54: DeprecationWarning: invalid escape sequence \s
rendered, 'profile\s+myprofilename\s+env\s+PROFILE_ENV_VAR')
./tests/unit/customizations/configure/test_list.py:71: DeprecationWarning: invalid escape sequence \s
rendered, 'region\s+us-west-2\s+config-file\s+/config/location')
./tests/unit/customizations/configure/test_list.py:103: DeprecationWarning: invalid escape sequence \s
rendered, 'profile\s+myprofilename\s+env\s+AWS_DEFAULT_PROFILE')
./tests/unit/customizations/configure/test_list.py:106: DeprecationWarning: invalid escape sequence \s
rendered, 'region\s+us-west-2\s+config-file\s+/config/location')
./tests/unit/customizations/emr/test_add_steps.py:215: DeprecationWarning: invalid escape sequence \,
'Properties=k1=v1\,k2=v2\,k3')
./tests/unit/customizations/history/test_db.py:620: DeprecationWarning: invalid escape sequence \e
'tuple': ('bar', 'baz', b'\xfe\ed')
./tests/unit/test_utils.py:59: DeprecationWarning: invalid escape sequence \,
self.assertEqual(split_on_commas('foo,bar=1\,2\,3,baz'),
./tests/unit/test_argprocess.py:420: DeprecationWarning: invalid escape sequence \,
p, ["ParameterKey=key,ParameterValue=foo\,bar"])
./tests/unit/test_argprocess.py:682: DeprecationWarning: invalid escape sequence \w
self.assertRegexpMatches(generated_example, 'Ebs={\w+=\w+')
./tests/functional/cloudformation/test_create_stack.py:44: DeprecationWarning: invalid escape sequence \,
cmdline += ' --parameters ParameterKey=foo,ParameterValue=one\,two'
./tests/integration/test_smoke.py:155: DeprecationWarning: invalid escape sequence \(
'An error occurred \(.+\) when calling the \w+ operation: \w+')
./tests/integration/test_cli.py:62: DeprecationWarning: invalid escape sequence \s
p.stdout, 'The\s+AWS\s+Command\s+Line\s+Interface')
./tests/integration/test_cli.py:78: DeprecationWarning: invalid escape sequence \s
'\s+Describes\s+the\s+specified\s+instances')
./tests/integration/test_cli.py:83: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(p.stdout, '\s+AWS\s+CLI\s+Topic\s+Guide')
./tests/integration/test_cli.py:86: DeprecationWarning: invalid escape sequence \s
'\s+This\s+is\s+the\s+AWS\s+CLI\s+Topic\s+Guide'
./tests/integration/test_cli.py:92: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(p.stdout, '\s+AWS\s+CLI\s+Return\s+Codes')
./tests/integration/test_cli.py:95: DeprecationWarning: invalid escape sequence \s
'These\s+are\s+the\s+following\s+return\s+codes'
./tests/integration/test_cli.py:125: DeprecationWarning: invalid escape sequence \s
self.assertRegexpMatches(p.stdout, 'To\s+receive\s+notifications')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
closed-for-stalenessenhancementfeature-requestA feature should be added or improved.A feature should be added or improved.