From 8febccdc8274617372b61e85fb8a1c0f5b147de9 Mon Sep 17 00:00:00 2001 From: dgw Date: Thu, 24 Jan 2019 02:38:59 -0600 Subject: [PATCH] Fix invalid escape sequence \_ used in several places --- sopel/modules/admin.py | 4 ++-- sopel/modules/clock.py | 2 +- sopel/modules/ip.py | 2 +- sopel/modules/meetbot.py | 4 ++-- sopel/modules/safety.py | 6 +++--- sopel/modules/url.py | 4 ++-- sopel/modules/wikipedia.py | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/sopel/modules/admin.py b/sopel/modules/admin.py index e73b55458c..d2924e76c8 100644 --- a/sopel/modules/admin.py +++ b/sopel/modules/admin.py @@ -29,8 +29,8 @@ def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | - | hold\_ground | False | Auto-rejoin the channel after being kicked. | - | auto\_accept\_invite | True | Auto-join channels when invited. | + | hold\\_ground | False | Auto-rejoin the channel after being kicked. | + | auto\\_accept\\_invite | True | Auto-join channels when invited. | """ config.define_section('admin', AdminSection) config.admin.configure_setting('hold_ground', diff --git a/sopel/modules/clock.py b/sopel/modules/clock.py index fab4b900e2..444a703267 100644 --- a/sopel/modules/clock.py +++ b/sopel/modules/clock.py @@ -37,7 +37,7 @@ def configure(config): | name | example | purpose | | ---- | ------- | ------- | | tz | America/Chicago | Preferred time zone (see ); defaults to UTC | - | time\_format | %Y-%m-%d - %T%Z | Preferred time format (see ) | + | time\\_format | %Y-%m-%d - %T%Z | Preferred time format (see ) | """ config.define_section('clock', TimeSection) config.clock.configure_setting( diff --git a/sopel/modules/ip.py b/sopel/modules/ip.py index b1b89b4191..0eefad0b1c 100644 --- a/sopel/modules/ip.py +++ b/sopel/modules/ip.py @@ -40,7 +40,7 @@ def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | - | GeoIP\_db\_path | /home/sopel/GeoIP/ | Path to the GeoIP database files | + | GeoIP\\_db\\_path | /home/sopel/GeoIP/ | Path to the GeoIP database files | """ config.define_section('ip', GeoipSection) config.ip.configure_setting('GeoIP_db_path', diff --git a/sopel/modules/meetbot.py b/sopel/modules/meetbot.py index caf959bde4..e7583cf81a 100644 --- a/sopel/modules/meetbot.py +++ b/sopel/modules/meetbot.py @@ -37,8 +37,8 @@ def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | - | meeting\_log\_path | /home/sopel/www/meetings | Path to meeting logs storage directory (should be an absolute path, accessible on a webserver) | - | meeting\_log\_baseurl | http://example.com/~sopel/meetings | Base URL for the meeting logs directory | + | meeting\\_log\\_path | /home/sopel/www/meetings | Path to meeting logs storage directory (should be an absolute path, accessible on a webserver) | + | meeting\\_log\\_baseurl | http://example.com/~sopel/meetings | Base URL for the meeting logs directory | """ config.define_section('meetbot', MeetbotSection) config.meetbot.configure_setting( diff --git a/sopel/modules/safety.py b/sopel/modules/safety.py index b9b6fb30e7..970145a10c 100644 --- a/sopel/modules/safety.py +++ b/sopel/modules/safety.py @@ -54,9 +54,9 @@ def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | - | enabled\_by\_default | True | Enable URL safety in all channels where it isn't explicitly disabled. | - | known\_good | sopel.chat,dftba.net | List of "known good" domains to ignore. | - | vt\_api\_key | 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef | Optional VirusTotal API key to improve malicious URL detection | + | enabled\\_by\\_default | True | Enable URL safety in all channels where it isn't explicitly disabled. | + | known\\_good | sopel.chat,dftba.net | List of "known good" domains to ignore. | + | vt\\_api\\_key | 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef | Optional VirusTotal API key to improve malicious URL detection | """ config.define_section('safety', SafetySection) config.safety.configure_setting( diff --git a/sopel/modules/url.py b/sopel/modules/url.py index 0a0e7c1270..6009063edc 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -43,8 +43,8 @@ def configure(config): | name | example | purpose | | ---- | ------- | ------- | | exclude | https?://git\\\\.io/.* | A list of regular expressions for URLs for which the title should not be shown. | - | exclusion\_char | ! | A character (or string) which, when immediately preceding a URL, will stop the URL's title from being shown. | - | shorten\_url\_length | 72 | If greater than 0, the title fetcher will include a TinyURL version of links longer than this many characters. | + | exclusion\\_char | ! | A character (or string) which, when immediately preceding a URL, will stop the URL's title from being shown. | + | shorten\\_url\\_length | 72 | If greater than 0, the title fetcher will include a TinyURL version of links longer than this many characters. | """ config.define_section('url', UrlSection) config.url.configure_setting( diff --git a/sopel/modules/wikipedia.py b/sopel/modules/wikipedia.py index bab939bca6..d1b5684a99 100644 --- a/sopel/modules/wikipedia.py +++ b/sopel/modules/wikipedia.py @@ -40,8 +40,8 @@ def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | - | default\_lang | en | The default language to find articles from (same as Wikipedia language subdomain) | - | lang\_per\_channel | #YourPants:en,#TusPantalones:es | List of #channel:langcode pairs to define Wikipedia language per channel | + | default\\_lang | en | The default language to find articles from (same as Wikipedia language subdomain) | + | lang\\_per\\_channel | #YourPants:en,#TusPantalones:es | List of #channel:langcode pairs to define Wikipedia language per channel | """ config.define_section('wikipedia', WikipediaSection) config.wikipedia.configure_setting(