Skip to content

Commit

Permalink
Fix typos (#1448)
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng authored Sep 16, 2024
1 parent 028eeb7 commit 13c28f6
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ Deprecations:
Changes:

- Fiona's FionaDeprecationWarning now sub-classes DeprecationWarning.
- Some test modules have beeen re-formatted using black.
- Some test modules have been re-formatted using black.

New features:

Expand Down Expand Up @@ -1017,7 +1017,7 @@ can't unhear Love Coffin.
- New BytesCollection class (#215).
- Add GDAL's OpenFileGDB driver to registered drivers (#221).
- Implement CLI commands as plugins (#228).
- Raise click.abort instead of calling sys.exit, preventing suprising exits
- Raise click.abort instead of calling sys.exit, preventing surprising exits
(#236).

1.5.1 (2015-03-19)
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ environment:

global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# /E:ON and /V:ON options are not enabled in the batch script interpreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
GDAL_HOME: "C:\\gdal"
Expand Down
2 changes: 1 addition & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ dataset using another format.
> | fio load /tmp/test.shp --driver Shapefile
This command also supports GeoJSON text sequences. RS-separated sequences will
be detected. If you want to load LF-separated sequences, you must specfiy
be detected. If you want to load LF-separated sequences, you must specify
``--x-json-seq``.

.. code-block:: console
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,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
2 changes: 1 addition & 1 deletion fiona/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def open(
'example.shp', enabled_drivers=['GeoJSON', 'ESRI Shapefile'])
Some format drivers permit low-level filtering of fields. Specific
fields can be ommitted by using the ``ignore_fields`` parameter.
fields can be omitted by using the ``ignore_fields`` parameter.
Specific fields can be selected, excluding all others, by using the
``include_fields`` parameter.
Expand Down
4 changes: 2 additions & 2 deletions fiona/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from fiona.errors import PathError

# Supported URI schemes and their mapping to GDAL's VSI suffix.
# TODO: extend for other cloud plaforms.
# TODO: extend for other cloud platforms.
SCHEMES = {
'ftp': 'curl',
'gzip': 'gzip',
Expand All @@ -34,7 +34,7 @@
ARCHIVESCHEMES = set
CURLSCHEMES = set([k for k, v in SCHEMES.items() if v == 'curl'])

# TODO: extend for other cloud plaforms.
# TODO: extend for other cloud platforms.
REMOTESCHEMES = set([k for k, v in SCHEMES.items() if v in ('curl', 's3', 'oss', 'gs', 'az',)])


Expand Down
4 changes: 2 additions & 2 deletions fiona/_vsiopener.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cdef str VSI_NS_ROOT = "vsifiopener"
# the plugin to determine what "files" exist on "disk".
# Currently the only way to "create" a file in the filesystem is to add
# an entry to this dictionary. GDAL will then Open the path later.
_OPENER_REGISTRY = ContextVar("opener_registery")
_OPENER_REGISTRY = ContextVar("opener_registry")
_OPENER_REGISTRY.set({})
_OPEN_FILE_EXIT_STACKS = ContextVar("open_file_exit_stacks")
_OPEN_FILE_EXIT_STACKS.set({})
Expand Down Expand Up @@ -188,7 +188,7 @@ cdef void* pyopener_open(
This function is mandatory in the GDAL Filesystem Plugin API.
GDAL may call this function multiple times per filename and each
result must be seperately seekable.
result must be separately seekable.
"""
cdef FSData *fsdata = <FSData *>pUserData
path = fsdata.path.decode("utf-8")
Expand Down
2 changes: 1 addition & 1 deletion fiona/drvsupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def vector_driver_extensions():

extension_to_driver = {}
for drv, modes in supported_drivers.items():
# update extensions based on driver suppport
# update extensions based on driver support
for extension in extensions(drv) or ():
if "w" in modes:
extension_to_driver[extension] = extension_to_driver.get(extension, drv)
Expand Down
2 changes: 1 addition & 1 deletion fiona/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def require_gdal_version(
def some_func():
calling `some_func` with a runtime version of GDAL that is < 2.2 raises a
GDALVersionErorr.
GDALVersionError.
\b
@require_gdal_version('2.2', param='foo')
Expand Down
4 changes: 2 additions & 2 deletions fiona/fio/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def feature_text_gen():
# Log error and close up the GeoJSON, leaving it
# more or less valid no matter what happens above.
logger.critical(
"failed to serialize file record %d (%s), " "quiting", i, exc
"failed to serialize file record %d (%s), " "quitting", i, exc
)
sink.write("]")
sink.write(tail)
Expand Down Expand Up @@ -214,7 +214,7 @@ def feature_text_gen():
)
else:
logger.critical(
"failed to serialize file record %d (%s), " "quiting",
"failed to serialize file record %d (%s), " "quitting",
i,
exc,
)
Expand Down
4 changes: 2 additions & 2 deletions fiona/fio/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def transformer(crs, feat):
# Log error and close up the GeoJSON, leaving it
# more or less valid no matter what happens above.
logger.critical(
"failed to serialize file record %d (%s), " "quiting", i, exc
"failed to serialize file record %d (%s), " "quitting", i, exc
)
sink.write("]")
sink.write(tail)
Expand Down Expand Up @@ -165,7 +165,7 @@ def transformer(crs, feat):
else:
logger.critical(
"failed to serialize file record %d (%s), "
"quiting",
"quitting",
i, exc)
sink.write("]")
sink.write(tail)
Expand Down
2 changes: 1 addition & 1 deletion fiona/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def main(srcfile):
"""Open a dataset in an iteractive session."""
"""Open a dataset in an interactive session."""
with fiona.drivers():
with fiona.open(srcfile) as src:
code.interact(
Expand Down
2 changes: 1 addition & 1 deletion fiona/logutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class FieldSkipLogFilter(logging.Filter):
"""Filter field skip log messges.
"""Filter field skip log messages.
At most, one message per field skipped per loop will be passed.
"""
Expand Down
4 changes: 2 additions & 2 deletions fiona/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ def supports_vsi(driver):
bool
"""
virutal_io = _get_metadata_item(driver, MetadataItem.VIRTUAL_IO)
return virutal_io is not None and virutal_io.upper() == "YES"
virtual_io = _get_metadata_item(driver, MetadataItem.VIRTUAL_IO)
return virtual_io is not None and virtual_io.upper() == "YES"


@require_gdal_version('2.0')
Expand Down
4 changes: 2 additions & 2 deletions fiona/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __init__(
profile_name : str, optional
A shared credentials profile name, as per boto3.
endpoint_url: str, optional
An endpoint_url, as per GDAL's AWS_S3_ENPOINT
An endpoint_url, as per GDAL's AWS_S3_ENDPOINT
requester_pays : bool, optional
True if the requester agrees to pay transfer costs (default:
False)
Expand Down Expand Up @@ -359,7 +359,7 @@ class GSSession(Session):
"""Configures access to secured resources stored in Google Cloud Storage
"""
def __init__(self, google_application_credentials=None):
"""Create new Google Cloude Storage session
"""Create new Google Cloud Storage session
Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions fiona/vfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Supported URI schemes and their mapping to GDAL's VSI suffix.
# TODO: extend for other cloud plaforms.
# TODO: extend for other cloud platforms.
SCHEMES = {
'ftp': 'curl',
'gzip': 'gzip',
Expand All @@ -20,7 +20,7 @@

CURLSCHEMES = {k for k, v in SCHEMES.items() if v == 'curl'}

# TODO: extend for other cloud plaforms.
# TODO: extend for other cloud platforms.
REMOTESCHEMES = {k for k, v in SCHEMES.items() if v in ('curl', 's3', 'gs')}


Expand Down
2 changes: 1 addition & 1 deletion tests/test_bigint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
integer that require 10 or 11 characters. the field is dynamically extended
like managed since a few versions). OFTInteger64 fields are created by default
with a width of 18 digits, so to be unambiguously read as OFTInteger64, and
extented to 19 or 20 if needed. Integer fields of width between 10 and 18
extended to 19 or 20 if needed. Integer fields of width between 10 and 18
will be read as OFTInteger64. Above they will be treated as OFTReal. In
previous GDAL versions, Integer fields were created with a default with of 10,
and thus will be now read as OFTInteger64. An open option, DETECT_TYPE=YES, can
Expand Down
2 changes: 1 addition & 1 deletion tests/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def test_datetime_field_type_marked_not_supported_is_not_supported(
):
"""Test if a date/datetime/time field type marked as not not supported is really not supported
Warning: Success of this test does not necessary mean that a field is not supported. E.g. errors can occour due to
Warning: Success of this test does not necessary mean that a field is not supported. E.g. errors can occur due to
special schema requirements of drivers. This test only covers the standard case.
"""
Expand Down

0 comments on commit 13c28f6

Please sign in to comment.