heroku / salesforce-bulk

Python interface to the Salesforce.com Bulk API
MIT License
207 stars 154 forks source link

Deprecation warning due to invalid escape sequences in Python 3.8 #76

Closed tirkarthi closed 4 years ago

tirkarthi commented 4 years ago
find . -iname '*.py'  | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}

./salesforce_bulk/salesforce_bulk.py:302: DeprecationWarning: invalid escape sequence \w
  re.search(re.compile("from (\w+)", re.I), soql).group(1),
./salesforce_bulk/tests/test_salesforce_bulk.py:270: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", job_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:273: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", batch_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:297: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", job_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:301: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", batch_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:352: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", job_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:365: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", batch_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:391: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", job_id))
./salesforce_bulk/tests/test_salesforce_bulk.py:428: DeprecationWarning: invalid escape sequence \w
  self.assertIsNotNone(re.match("\w+", batch_id))