<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-coveragepy-git.git/coverage/misc.py, branch 6.0.2</title>
<subtitle>github.com: nedbat/coveragepy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/'/>
<entry>
<title>fix: source modules need to be re-imported. #1232</title>
<updated>2021-10-11T20:15:40+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-11T19:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=260359756694728cd13f8c8715dddf7c6e2f371d'/>
<id>260359756694728cd13f8c8715dddf7c6e2f371d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>style: use the official designation for utf-8</title>
<updated>2021-10-10T11:24:35+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-10T11:24:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=267622b11b730ec69bf34202fc6258a2614394c5'/>
<id>267622b11b730ec69bf34202fc6258a2614394c5</id>
<content type='text'>
Yes, this is completely unimportant. Don't ask me why I bothered, I'm
not really sure.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Yes, this is completely unimportant. Don't ask me why I bothered, I'm
not really sure.
</pre>
</div>
</content>
</entry>
<entry>
<title>test: mark some uncovered things</title>
<updated>2021-10-08T15:43:00+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-08T15:43:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=35b28c01047f644cd4f1f3e10881ce14e5df87fd'/>
<id>35b28c01047f644cd4f1f3e10881ce14e5df87fd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: make exceptions importable from coverage.misc again. #1226</title>
<updated>2021-10-07T00:31:19+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-07T00:31:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=a309f08287e3bc3f50e2c97feaa44e6b2523d355'/>
<id>a309f08287e3bc3f50e2c97feaa44e6b2523d355</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: pretend we didn't import third-party packages we use. #1228</title>
<updated>2021-10-06T11:20:22+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-10-05T23:43:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=613446ca9da592c6925329b869b9ef785d83f76e'/>
<id>613446ca9da592c6925329b869b9ef785d83f76e</id>
<content type='text'>
tomli couldn't use coverage themselves because we imported it early.
Cleaning sys.modules means their own imports will actually execute after
coverage has started, so their files will be properly measured.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tomli couldn't use coverage themselves because we imported it early.
Cleaning sys.modules means their own imports will actually execute after
coverage has started, so their files will be properly measured.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: Avoid a race condition in misc.ensure_dir (#1220)</title>
<updated>2021-09-02T20:53:51+00:00</updated>
<author>
<name>Clément Pit-Claudel</name>
<email>cpitclaudel@users.noreply.github.com</email>
</author>
<published>2021-09-02T20:53:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=f531212a2c26700737282f0b409381adf9e30dd9'/>
<id>f531212a2c26700737282f0b409381adf9e30dd9</id>
<content type='text'>
* coverage/misc.py (ensure_dir): Pass exist_ok to os.makedirs, ensuring that if
two concurrent instances of coverage.py entering this function at the same time
won't fail with FileExistsError.

Sample backtrace:

    Traceback (most recent call last):
      File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
        exec(code, run_globals)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/__main__.py", line 8, in &lt;module&gt;
        sys.exit(main())
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 871, in main
        status = CoverageScript().command_line(argv)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 588, in command_line
        return self.do_run(options, args)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 743, in do_run
        self.coverage.start()
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 535, in start
        self._init_for_start()
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 474, in _init_for_start
        self._init_data(suffix)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 512, in _init_data
        ensure_dir_for_file(self.config.data_file)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/misc.py", line 165, in ensure_dir_for_file
        ensure_dir(os.path.dirname(path))
      File "/.local/lib/python3.8/site-packages/coverage/misc.py", line 160, in ensure_dir
        os.makedirs(directory)
      File "/usr/lib/python3.8/os.py", line 223, in makedirs
        mkdir(name, mode)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* coverage/misc.py (ensure_dir): Pass exist_ok to os.makedirs, ensuring that if
two concurrent instances of coverage.py entering this function at the same time
won't fail with FileExistsError.

Sample backtrace:

    Traceback (most recent call last):
      File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
        exec(code, run_globals)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/__main__.py", line 8, in &lt;module&gt;
        sys.exit(main())
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 871, in main
        status = CoverageScript().command_line(argv)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 588, in command_line
        return self.do_run(options, args)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 743, in do_run
        self.coverage.start()
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 535, in start
        self._init_for_start()
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 474, in _init_for_start
        self._init_data(suffix)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 512, in _init_data
        ensure_dir_for_file(self.config.data_file)
      File "/home/user/.local/lib/python3.8/site-packages/coverage/misc.py", line 165, in ensure_dir_for_file
        ensure_dir(os.path.dirname(path))
      File "/.local/lib/python3.8/site-packages/coverage/misc.py", line 160, in ensure_dir
        os.makedirs(directory)
      File "/usr/lib/python3.8/os.py", line 223, in makedirs
        mkdir(name, mode)</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: convert %-strings to f-strings</title>
<updated>2021-07-28T21:29:52+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-07-28T21:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=c5c1ba084b0b548ff8869cbc086e81608c329eb6'/>
<id>c5c1ba084b0b548ff8869cbc086e81608c329eb6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: it just seems silly to use more than 32 chars for a fingerprint</title>
<updated>2021-07-14T10:12:24+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-07-14T10:12:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=0ff5a1c8a31f701321c838eea3beea553882b269'/>
<id>0ff5a1c8a31f701321c838eea3beea553882b269</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: use a modern hash when fingerprinting. #1189</title>
<updated>2021-07-13T20:57:06+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-07-13T20:57:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=367f7c45c857be06cd970ac5594ad92d3e34199e'/>
<id>367f7c45c857be06cd970ac5594ad92d3e34199e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: move exceptions to their own module</title>
<updated>2021-05-02T11:38:20+00:00</updated>
<author>
<name>Ned Batchelder</name>
<email>ned@nedbatchelder.com</email>
</author>
<published>2021-05-02T02:38:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-coveragepy-git.git/commit/?id=6a3d3aaaf2aebb816c7287263c8097844280b233'/>
<id>6a3d3aaaf2aebb816c7287263c8097844280b233</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
