Skip to content

Commit c03570b

Browse files
committed
Remove the now unused MSS.display class variable from GNU/Linux implementation
Finalisation of 59c2259.
1 parent 89a1a39 commit c03570b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ darwin.py
1717
linux.py
1818
--------
1919
- Added ``MSS.has_extension()``
20+
- Removed ``MSS.display``
2021
- Renamed ``MSS.grab()`` to ``MSS._grab_impl()``
2122
- Renamed ``MSS.monitors`` to ``MSS._monitors_impl()``
2223

mss/linux.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ class MSS(MSSBase):
184184

185185
__slots__ = {"drawable", "root", "xlib", "xrandr"}
186186

187-
# Class attribute to store the display opened with XOpenDisplay().
188-
# Instancied one time to prevent resource leak.
189-
display = None
190-
191187
# A dict to maintain *display* values created by multiple threads.
192188
_display_dict = {} # type: Dict[threading.Thread, int]
193189

0 commit comments

Comments
 (0)