Skip to content

Commit 044debe

Browse files
committed
Fix many misspellings
Signed-off-by: Piotr Kasprzyk <[email protected]>
1 parent 6b5df2f commit 044debe

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

Xlib/display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def send_event(self, destination, event, event_mask = 0, propagate = 0,
517517
event = event)
518518

519519
def ungrab_pointer(self, time, onerror = None):
520-
"""elease a grabbed pointer and any queued events. See
520+
"""Release a grabbed pointer and any queued events. See
521521
XUngrabPointer(3X11)."""
522522
request.UngrabPointer(display = self.display,
523523
onerror = onerror,
@@ -661,7 +661,7 @@ def list_fonts_with_info(self, pattern, max_names):
661661
font_ascent
662662
font_descent
663663
replies_hint
664-
See the descripton of XFontStruct in XGetFontProperty(3X11)
664+
See the description of XFontStruct in XGetFontProperty(3X11)
665665
for details on these values.
666666
properties
667667
A list of properties. Each entry has two attributes:

Xlib/ext/xinerama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
this is untested because I don't have a server that implements it.
3131
3232
The functions loosely follow the libXineram functions. Mostly, they
33-
return an rq.Struct in lieue of passing in pointers that get data from
33+
return an rq.Struct in lieu of passing in pointers that get data from
3434
the rq.Struct crammed into them. The exception is isActive, which
3535
returns the state information - because that's what libXinerama does."""
3636

Xlib/protocol/display.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __init__(self, display = None):
110110
self.request_serial = 1
111111
self.request_queue = []
112112

113-
# Send-and-recieve loop, see function send_and_recive
113+
# Send-and-receive loop, see function send_and_receive
114114
# for a detailed explanation
115115
self.send_recv_lock = lock.allocate_lock()
116116
self.send_active = 0
@@ -127,7 +127,7 @@ def __init__(self, display = None):
127127
buffer_size = math.pow(2, math.floor(math.log(buffer_size, 2)))
128128
self.recv_buffer_size = int(buffer_size)
129129

130-
# Data used by the send-and-recieve loop
130+
# Data used by the send-and-receive loop
131131
self.sent_requests = []
132132
self.recv_packet_len = 0
133133
self.data_send = b''
@@ -146,7 +146,7 @@ def __init__(self, display = None):
146146
# Right, now we're all set up for the connection setup
147147
# request with the server.
148148

149-
# Figure out which endianess the hardware uses
149+
# Figure out which endianness the hardware uses
150150
self.big_endian = struct.unpack('BB', struct.pack('H', 0x0100))[0]
151151

152152
if self.big_endian:
@@ -204,7 +204,7 @@ def next_event(self):
204204

205205
while not self.event_queue:
206206

207-
# Lock send_recv so no send_and_recieve
207+
# Lock send_recv so no send_and_receive
208208
# can start or stop while we're checking
209209
# whether there are one active.
210210
self.send_recv_lock.acquire()
@@ -400,7 +400,7 @@ def send_and_recv(self, flush = None, event = None, request = None, recv = None)
400400
be true. Will return immediately if another thread is
401401
already doing send_and_recv.
402402
403-
To wait for an event to be recieved, event should be true.
403+
To wait for an event to be received, event should be true.
404404
405405
To wait for a response to a certain request (either an error
406406
or a response), request should be set the that request's
@@ -561,7 +561,7 @@ def send_and_recv(self, flush = None, event = None, request = None, recv = None)
561561

562562
rs, ws, es = select.select([self.socket], writeset, [], timeout)
563563

564-
# Ignore errors caused by a signal recieved while blocking.
564+
# Ignore errors caused by a signal received while blocking.
565565
# All other errors are re-raised.
566566
except select.error as err:
567567
if isinstance(err, OSError):
@@ -627,7 +627,7 @@ def send_and_recv(self, flush = None, event = None, request = None, recv = None)
627627

628628
# There are three different end of send-recv-loop conditions.
629629
# However, we don't leave the loop immediately, instead we
630-
# try to send and recieve any data that might be left. We
630+
# try to send and receive any data that might be left. We
631631
# do this by giving a timeout of 0 to select to poll
632632
# the socket.
633633

@@ -643,7 +643,7 @@ def send_and_recv(self, flush = None, event = None, request = None, recv = None)
643643
if request is not None and gotreq:
644644
break
645645

646-
# Always break if we just want to recieve as much as possible
646+
# Always break if we just want to receive as much as possible
647647
if recv:
648648
break
649649

@@ -678,9 +678,9 @@ def send_and_recv(self, flush = None, event = None, request = None, recv = None)
678678
def parse_response(self, request):
679679
"""Internal method.
680680
681-
Parse data recieved from server. If REQUEST is not None
681+
Parse data received from server. If REQUEST is not None
682682
true is returned if the request with that serial number
683-
was recieved, otherwise false is returned.
683+
was received, otherwise false is returned.
684684
685685
If REQUEST is -1, we're parsing the server connection setup
686686
response.
@@ -711,11 +711,11 @@ def parse_response(self, request):
711711
raise AssertionError(rtype)
712712

713713
# Every response is at least 32 bytes long, so don't bother
714-
# until we have recieved that much
714+
# until we have received that much
715715
if len(self.data_recv) < 32:
716716
return gotreq
717717

718-
# Error resposne
718+
# Error response
719719
if rtype == 0:
720720
gotreq = self.parse_error_response(request) or gotreq
721721

Xlib/protocol/rq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def to_binary(self, *varargs, **keys):
10581058
pack_items.append(field_args[f.name])
10591059

10601060
# Multivalue field. Handled like single valuefield,
1061-
# but the value are tuple unpacked into seperate arguments
1061+
# but the value are tuple unpacked into separate arguments
10621062
# which are appended to pack_items
10631063
else:
10641064
if f.check_value is not None:

Xlib/rdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def get_display_opts(options, argv = sys.argv):
699699
# the resource object.
700700

701701
# Example: Inserting "foo.bar*gazonk: yep" into an otherwise empty
702-
# resource database would give the folliwing structure:
702+
# resource database would give the following structure:
703703

704704
# { 'foo': ( { 'bar': ( { },
705705
# { 'gazonk': ( { },

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Uncomment this to turn on verbose mode.
88
#export DH_VERBOSE=1
99

10-
# This is the debhelper compatability version to use.
10+
# This is the debhelper compatibility version to use.
1111
export DH_COMPAT=1
1212

1313
build: build-stamp

doc/src/errors.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Forget any caught error.
142142

143143

144144
Since the X protocol is mostly asynchronous any error we're watching for
145-
might not have been recieved when we call @code{get_error}. To make
145+
might not have been received when we call @code{get_error}. To make
146146
sure that the request has been processed by the server and any error
147147
generated has been received by the Xlib, we must synchronize with the
148148
server.

doc/src/events.texi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ typically by doing one or more X requests.
2222
@section Getting Events
2323

2424
Events can be sent at any time, not necessarily when the client is ready
25-
to recieve an event. Therefore they must be stored temporarily from that
25+
to receive an event. Therefore they must be stored temporarily from that
2626
they are read from the network until the client is ready to handle them.
2727
Read but unhandled events are stored on an event queue in the Display
2828
object. There are two functions to access this queue:
@@ -72,7 +72,7 @@ while 1:
7272
if not readable:
7373
handle_timeout()
7474
75-
# if display is readable, handle as many events as have been recieved
75+
# if display is readable, handle as many events as have been received
7676
elif disp in readable:
7777
i = disp.pending_events()
7878
while i > 0:

doc/src/objects.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ The name of the font.
475475
@itemx font_ascent
476476
@itemx font_descent
477477
@itemx replies_hint
478-
See the descripton of XFontStruct in XGetFontProperty(3X11) for details
478+
See the description of XFontStruct in XGetFontProperty(3X11) for details
479479
on these values.
480480

481481
@item properties

examples/get_selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def main():
8383
# since we don't have an event here we have to.
8484
w.convert_selection(sel_atom, target_atom, data_atom, X.CurrentTime)
8585

86-
# Wait for the notificiaton that we got the selection
86+
# Wait for the notification that we got the selection
8787
while True:
8888
e = d.next_event()
8989
if e.type == X.SelectionNotify:

0 commit comments

Comments
 (0)