Skip to content

Commit

Permalink
More implicit string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed May 10, 2024
1 parent e00bf13 commit 07eafa4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Pythonwin/pywin/test/test_pywin.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def t_print(*args):
pywin.scintilla.IDLEenvironment.test()
ed = scriptutils.GetActiveEditControl()
doc = ed.GetDocument()
assert "hi " "there" in ed.GetTextRange()
assert "hi there" in ed.GetTextRange()
assert doc.IsModified()

# edit w auto-indent
Expand Down
6 changes: 3 additions & 3 deletions adodbapi/test/dbapi20.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,12 @@ def _paraminsert(self, cur):
self.assertEqual(
beers[0],
"Cooper's",
"cursor.fetchall retrieved incorrect data, or data inserted " "incorrectly",
"cursor.fetchall retrieved incorrect data, or data inserted incorrectly",
)
self.assertEqual(
beers[1],
"Victoria Bitter",
"cursor.fetchall retrieved incorrect data, or data inserted " "incorrectly",
"cursor.fetchall retrieved incorrect data, or data inserted incorrectly",
)
trouble = "thi%s :may ca%(u)se? troub:1e"
self.assertEqual(
Expand Down Expand Up @@ -541,7 +541,7 @@ def test_fetchone(self):
self.assertEqual(
cur.fetchone(),
None,
"cursor.fetchone should return None if a query retrieves " "no rows",
"cursor.fetchone should return None if a query retrieves no rows",
)
self.assertTrue(cur.rowcount in (-1, 0))

Expand Down
2 changes: 1 addition & 1 deletion pywin32_postinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def RegisterHelpFile(register=True, lib_dir=None):
SetPyKeyVal("Help\\Pythonwin Reference", None, chm_file)
return chm_file
else:
print("NOTE: PyWin32.chm can not be located, so has not " "been registered")
print("NOTE: PyWin32.chm can not be located, so has not been registered")
else:
UnsetPyKeyVal("Help\\Pythonwin Reference", None, delete_key=True)
return None
Expand Down
2 changes: 1 addition & 1 deletion win32/Demos/security/sspi/socket_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def sspi_client():
serve()
else:
parser.error(
"You must supply 'client' or 'server' - " "use --help for details"
"You must supply 'client' or 'server' - use --help for details"
)
except KeyboardInterrupt:
pass
Expand Down
6 changes: 3 additions & 3 deletions win32/test/test_odbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def testDates(self):
def test_set_nonzero_length(self):
self.assertEqual(
self.cur.execute(
"insert into %s (userid,username) " "values (?,?)" % self.tablename,
"insert into %s (userid,username) values (?,?)" % self.tablename,
["Frank", "Frank Millman"],
),
1,
Expand All @@ -240,7 +240,7 @@ def test_set_nonzero_length(self):
def test_set_zero_length(self):
self.assertEqual(
self.cur.execute(
"insert into %s (userid,username) " "values (?,?)" % self.tablename,
"insert into %s (userid,username) values (?,?)" % self.tablename,
[b"Frank", ""],
),
1,
Expand All @@ -251,7 +251,7 @@ def test_set_zero_length(self):
def test_set_zero_length_unicode(self):
self.assertEqual(
self.cur.execute(
"insert into %s (userid,username) " "values (?,?)" % self.tablename,
"insert into %s (userid,username) values (?,?)" % self.tablename,
["Frank", ""],
),
1,
Expand Down

0 comments on commit 07eafa4

Please sign in to comment.