Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found via `codespell -S .tox,.mypy_cache -L keypair,addrees`
  • Loading branch information
kianmeng committed Oct 5, 2022
1 parent dd47d57 commit b55606a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ example by triggering connect in a bg thread.

### Changed

- As of January 2015, Yowsup is GPLv3 licensed (previouly was MIT)
- As of January 2015, Yowsup is GPLv3 licensed (previously was MIT)
- Fixed broadcast
- Fixed registration no_routes error
- Updated registration token
Expand All @@ -382,7 +382,7 @@ example by triggering connect in a bg thread.
- Experimental Axolotl support (end-to-end encryption)
- Upload and send images
- Initial support for groups v2
- Easy switch/ add new enviornment (S40/Android ..etc)
- Easy switch/ add new environment (S40/Android ..etc)
- _sendIq in YowProtocolLayer and YowInterfaceLayer with callbacks for Iq result and error
- new send and exit demo
- E2E encryption in yowsup and echo client demos
Expand Down
2 changes: 1 addition & 1 deletion yowsup-cli
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class YowArgParser(argparse.ArgumentParser):
'--config-phone', '--phone',
action="store",
help="Your full phone number including the country code you defined in 'cc',"
" without preceeding '+' or '00'"
" without preceding '+' or '00'"
)
config_group.add_argument(
'--config-cc', '--cc',
Expand Down
2 changes: 1 addition & 1 deletion yowsup/demos/sendclient/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):
def onSuccess(self, successProtocolEntity):
self.lock.acquire()
for target in self.getProp(self.__class__.PROP_MESSAGES, []):
#getProp() is trying to retreive the list of (jid, message) tuples, if none exist, use the default []
#getProp() is trying to retrieve the list of (jid, message) tuples, if none exist, use the default []
phone, message = target
messageEntity = TextMessageProtocolEntity(message, to = Jid.normalize(phone))
#append the id of message to ackQueue list
Expand Down
2 changes: 1 addition & 1 deletion yowsup/layers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def assert_emitEvent(self, event):
try:
self.assertEqual(event, self.upperEventSink.pop())
except IndexError:
raise AssertionError("Event '%s' was not emited through this layer" % (event.getName()))
raise AssertionError("Event '%s' was not emitted through this layer" % (event.getName()))

def assert_broadcastEvent(self, event):
self.broadcastEvent(event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, encEntities, _type, messageAttributes):

def setEncEntities(self, encEntities = None):
assert type(encEntities) is list and len(encEntities) \
, "Must have at least a list of minumum 1 enc entity"
, "Must have at least a list of minimum 1 enc entity"
self.encEntities = encEntities

def getEnc(self, encType):
Expand Down
2 changes: 1 addition & 1 deletion yowsup/layers/protocol_media/mediauploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ def run(self):
self.errorCallback(sourcePath, self.jid, uploadUrl)

except:
logger.exception("Error occured at transfer %s" % sys.exc_info()[1])
logger.exception("Error occurred at transfer %s" % sys.exc_info()[1])
if self.errorCallback:
self.errorCallback(sourcePath, self.jid, uploadUrl)
2 changes: 1 addition & 1 deletion yowsup/layers/protocol_messages/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def sendMessageEntity(self, entity):
if entity.getType() == "text":
self.entityToLower(entity)

###recieved node handlers handlers
###received node handlers handlers
def recvMessageStanza(self, node):
protoNode = node.getChild("proto")

Expand Down

0 comments on commit b55606a

Please sign in to comment.