Skip to content

Commit

Permalink
Fix invalid escape sequence \_ used in several places
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Jan 24, 2019
1 parent 48cea93 commit 8febccd
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion sopel/modules/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def configure(config):
| name | example | purpose |
| ---- | ------- | ------- |
| tz | America/Chicago | Preferred time zone (see <https://sopel.chat/tz>); defaults to UTC |
| time\_format | %Y-%m-%d - %T%Z | Preferred time format (see <http://strftime.net>) |
| time\\_format | %Y-%m-%d - %T%Z | Preferred time format (see <http://strftime.net>) |
"""
config.define_section('clock', TimeSection)
config.clock.configure_setting(
Expand Down
2 changes: 1 addition & 1 deletion sopel/modules/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions sopel/modules/meetbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions sopel/modules/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions sopel/modules/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions sopel/modules/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8febccd

Please sign in to comment.