Skip to content

Commit c1e3abf

Browse files
Berthin TorresBerthin Torres
authored andcommitted
fix linting issues
1 parent f17476b commit c1e3abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_netrc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def generate_netrc(self, content, filename=".netrc", mode=0o600, encoding="utf-8
2424
write_mode = "w"
2525
if sys.platform != "cygwin":
2626
write_mode += "t"
27-
27+
2828
netrc_file = os.path.join(self.tmpdir, filename)
2929
with open(netrc_file, mode=write_mode, encoding=encoding) as fp:
3030
fp.write(textwrap.dedent(content))
@@ -40,7 +40,7 @@ def use_default_netrc_in_home(*args, **kwargs):
4040
with NetrcEnvironment() as helper:
4141
helper.environ.unset("NETRC")
4242
helper.environ.unset("HOME")
43-
43+
4444
helper.generate_netrc(*args, **kwargs)
4545

4646
with mock.patch("os.path.expanduser"):
@@ -54,7 +54,7 @@ def use_netrc_envvar(*args, **kwargs):
5454

5555
helper.environ.set("NETRC", netrc_file)
5656
return netrc.netrc()
57-
57+
5858
@staticmethod
5959
def use_file_argument(*args, **kwargs):
6060
with NetrcEnvironment() as helper:
@@ -157,7 +157,7 @@ def _test_token_x(self, make_nrc, content, token, value):
157157
self.assertEqual(nrc.hosts['host.domain.com'], ('log', value, 'pass'))
158158
elif token == 'password':
159159
self.assertEqual(nrc.hosts['host.domain.com'], ('log', 'acct', value))
160-
160+
161161
@support.subTests('make_nrc', ALL_STRATEGIES)
162162
def test_token_value_quotes(self, make_nrc):
163163
self._test_token_x(make_nrc, """\

0 commit comments

Comments
 (0)