From a148c7aba9a676020d75f8df08497e728f7522c1 Mon Sep 17 00:00:00 2001 From: Sylvain Lesage Date: Wed, 21 Jul 2021 17:30:29 +0200 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=F0=9F=90=9B=20change=20string=20for?= =?UTF-8?q?mat=20to=20allow=20copy/paste=20to=20work=20in=20bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: copy/paste resulted in an error because the square bracket characters `[]` are special characters in bash --- src/datasets/builder.py | 2 +- src/datasets/load.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasets/builder.py b/src/datasets/builder.py index 410bbf3dd0d..b9b5f08b4b7 100644 --- a/src/datasets/builder.py +++ b/src/datasets/builder.py @@ -898,7 +898,7 @@ def as_streaming_dataset( if not config.AIOHTTP_AVAILABLE: raise ImportError( f"To be able to use dataset streaming, you need to install dependencies like aiohttp " - f"using 'pip install datasets[streaming]' or 'pip install aiohttp' for instance" + f"using \"pip install 'datasets[streaming]'\" or \"pip install aiohttp\" for instance" ) from .utils.streaming_download_manager import StreamingDownloadManager diff --git a/src/datasets/load.py b/src/datasets/load.py index f9bbad0f04c..24288d21f24 100644 --- a/src/datasets/load.py +++ b/src/datasets/load.py @@ -806,7 +806,7 @@ def load_dataset( if not config.AIOHTTP_AVAILABLE: raise ImportError( f"To be able to use dataset streaming, you need to install dependencies like aiohttp " - f"using 'pip install datasets[streaming]' or 'pip install aiohttp' for instance" + f"using \"pip install 'datasets[streaming]'\" or \"pip install aiohttp\" for instance" ) # Download/copy dataset processing script From 666d1439174d978d77c1bef827ce047564afc66e Mon Sep 17 00:00:00 2001 From: Sylvain Lesage Date: Wed, 21 Jul 2021 18:11:13 +0200 Subject: [PATCH 2/2] =?UTF-8?q?style:=20=F0=9F=92=84=20apply=20black?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/datasets/builder.py | 2 +- src/datasets/load.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasets/builder.py b/src/datasets/builder.py index b9b5f08b4b7..19327f80322 100644 --- a/src/datasets/builder.py +++ b/src/datasets/builder.py @@ -898,7 +898,7 @@ def as_streaming_dataset( if not config.AIOHTTP_AVAILABLE: raise ImportError( f"To be able to use dataset streaming, you need to install dependencies like aiohttp " - f"using \"pip install 'datasets[streaming]'\" or \"pip install aiohttp\" for instance" + f'using "pip install \'datasets[streaming]\'" or "pip install aiohttp" for instance' ) from .utils.streaming_download_manager import StreamingDownloadManager diff --git a/src/datasets/load.py b/src/datasets/load.py index 24288d21f24..8998effcb17 100644 --- a/src/datasets/load.py +++ b/src/datasets/load.py @@ -806,7 +806,7 @@ def load_dataset( if not config.AIOHTTP_AVAILABLE: raise ImportError( f"To be able to use dataset streaming, you need to install dependencies like aiohttp " - f"using \"pip install 'datasets[streaming]'\" or \"pip install aiohttp\" for instance" + f'using "pip install \'datasets[streaming]\'" or "pip install aiohttp" for instance' ) # Download/copy dataset processing script