Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #200

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Breaking changes:
Setting `chunk_size` to a positive value will make it return a generator
similar to the previous behavior.
* Rename `Client.set_permissions` to `Client.set_permission` to make
`permission` argument uniform across `Client` methods (alway singular,
`permission` argument uniform across `Client` methods (always singular,
consistent with WebHDFS API).
* `Client.parts` will now throw an error if called on a normal file.
* Make most client attributes private (e.g. `cert`, `timeout`, etc.), except
Expand Down Expand Up @@ -94,7 +94,7 @@ Version 1.4.0 (2015/07/24)
Version 1.1.0 (2015/06/23)
--------------------------

* Rename Avro extention entry point to `hdfs-avro`.
* Rename Avro extension entry point to `hdfs-avro`.


Version 1.0.1 (2015/06/17)
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
# The format is a list of tuples containing the path and title.
#epub_pre_files = []

# HTML files shat should be inserted after the pages created by sphinx.
# HTML files that should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_post_files = []

Expand Down
12 changes: 6 additions & 6 deletions hdfs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _request(self, method, url, **kwargs):
:param method: HTTP verb.
:param url: Url to send the request to.
:param \*\*kwargs: Extra keyword arguments forwarded to the request
handler. If any `params` are defined, these will take precendence over
handler. If any `params` are defined, these will take precedence over
the instance's defaults.

"""
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def checksum(self, hdfs_path):
def allow_snapshot(self, hdfs_path):
"""Allow snapshots for a remote folder.

:param hdfs_path: Remote path to a direcotry. If `hdfs_path`
:param hdfs_path: Remote path to a directory. If `hdfs_path`
doesn't exist or does points to a normal file, an
:class:`HdfsError` will be raised. No-op if snapshotting is
already allowed.
Expand All @@ -1052,7 +1052,7 @@ def allow_snapshot(self, hdfs_path):
def disallow_snapshot(self, hdfs_path):
"""Disallow snapshots for a remote folder.

:param hdfs_path: Remote path to a direcotry. If `hdfs_path`
:param hdfs_path: Remote path to a directory. If `hdfs_path`
doesn't exist, points to a normal file or there are some
snapshots, an :class:`HdfsError` will be raised.

Expand All @@ -1065,7 +1065,7 @@ def disallow_snapshot(self, hdfs_path):
def create_snapshot(self, hdfs_path, snapshotname=None):
"""Create snapshot for a remote folder where it was allowed.

:param hdfs_path: Remote path to a direcotry. If `hdfs_path`
:param hdfs_path: Remote path to a directory. If `hdfs_path`
doesn't exist, doesn't allow to create snapshot or points to a
normal file, an :class:`HdfsError` will be raised.
:param snapshotname snapshot name; if absent, name is generated
Expand All @@ -1080,7 +1080,7 @@ def create_snapshot(self, hdfs_path, snapshotname=None):
def delete_snapshot(self, hdfs_path, snapshotname):
"""Remove snapshot for a remote folder where it was allowed.

:param hdfs_path: Remote path to a direcotry. If `hdfs_path` doesn't exist
:param hdfs_path: Remote path to a directory. If `hdfs_path` doesn't exist
or points to a normal file, an :class:`HdfsError` will be raised.
:param snapshotname snapshot name; if it does not exist, an
:class:`HdfsError` will be raised.
Expand All @@ -1092,7 +1092,7 @@ def delete_snapshot(self, hdfs_path, snapshotname):
def rename_snapshot(self, hdfs_path, oldsnapshotname, snapshotname):
"""Rename snapshot for a remote folder.

:param hdfs_path: Remote path to a direcotry. If `hdfs_path` doesn't exist
:param hdfs_path: Remote path to a directory. If `hdfs_path` doesn't exist
or points to a normal file, an :class:`HdfsError` will be raised.
:param oldsnapshotname snapshot name; if it does not exist,
an :class:`HdfsError` will be raised.
Expand Down