jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[doc] Update documentation

* Mediawiki --> MediaWiki
* unix --> Unix
** See https://en.wikipedia.org/wiki/Unix
* unicode --> Unicode
** See https://en.wikipedia.org/wiki/Unicode

Change-Id: Iba0e373beb0d94a6eb27e44cff0d61f14e6c4408
---
M pywikibot/CONTENT.rst
M pywikibot/userinterfaces/terminal_interface_unix.py
M scripts/maintenance/cache.py
M tests/ui_tests.py
4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/pywikibot/CONTENT.rst b/pywikibot/CONTENT.rst
index 7f977f5..80c8fc1 100644
--- a/pywikibot/CONTENT.rst
+++ b/pywikibot/CONTENT.rst
@@ -47,7 +47,7 @@
+----------------------------+------------------------------------------------------+
| interwiki_graph.py | Possible create graph with interwiki.py script |
+----------------------------+------------------------------------------------------+
- | logentries.py | Objects representing Mediawiki log entries |
+ | logentries.py | Objects representing MediaWiki log entries |
+----------------------------+------------------------------------------------------+
| logging.py | Logging and output functions |
+----------------------------+------------------------------------------------------+
@@ -89,7 +89,7 @@
+----------------------------+------------------------------------------------------+
| data | Module providing layers of data access to wiki |
+============================+======================================================+
- | api.py | Interface to Mediawiki's api.php |
+ | api.py | Interface to MediaWiki's api.php |
+----------------------------+------------------------------------------------------+
| mysql.py | Miscellaneous helper functions for mysql queries |
+----------------------------+------------------------------------------------------+
@@ -174,19 +174,19 @@
+============================+======================================================+
| _interface_base.py | Abstract base user interface module |
+----------------------------+------------------------------------------------------+
- | gui.py | GUI with a unicode textfield where the user can edit |
+ | gui.py | GUI with a Unicode textfield where the user can edit |
+----------------------------+------------------------------------------------------+
| terminal_interface.py | Platform independent terminal interface module |
+----------------------------+------------------------------------------------------+
| terminal_interface_base.py | Base for terminal user interfaces |
+----------------------------+------------------------------------------------------+
- | terminal_interface_unix.py | User interface for unix terminals |
+ | terminal_interface_unix.py | User interface for Unix terminals |
+----------------------------+------------------------------------------------------+
| terminal_interface_win32.py| User interface for Win32 terminals |
+----------------------------+------------------------------------------------------+
| transliteration.py | Module to transliterate text |
+----------------------------+------------------------------------------------------+
- | win32_unicode.py | Stdout, stderr and argv support for unicode |
+ | win32_unicode.py | Stdout, stderr and argv support for Unicode |
+----------------------------+------------------------------------------------------+


diff --git a/pywikibot/userinterfaces/terminal_interface_unix.py b/pywikibot/userinterfaces/terminal_interface_unix.py
index a23ce78..8d82f32 100755
--- a/pywikibot/userinterfaces/terminal_interface_unix.py
+++ b/pywikibot/userinterfaces/terminal_interface_unix.py
@@ -1,6 +1,6 @@
-"""User interface for unix terminals."""
+"""User interface for Unix terminals."""
#
-# (C) Pywikibot team, 2003-2020
+# (C) Pywikibot team, 2003-2021
#
# Distributed under the terms of the MIT license.
#
@@ -32,7 +32,7 @@

class UnixUI(terminal_interface_base.UI):

- """User interface for unix terminals."""
+ """User interface for Unix terminals."""

def support_color(self, target_stream):
"""Return that the target stream supports colors."""
@@ -44,7 +44,7 @@
return chr(27) + '[' + str(int(code) + 10) + 'm'

def encounter_color(self, color, target_stream):
- """Write the unix color directly to the stream."""
+ """Write the Unix color directly to the stream."""
fg, bg = self.divide_color(color)
fg = unixColors[fg]
self._write(fg, target_stream)
diff --git a/scripts/maintenance/cache.py b/scripts/maintenance/cache.py
index 125f2a6..01247e2 100755
--- a/scripts/maintenance/cache.py
+++ b/scripts/maintenance/cache.py
@@ -218,7 +218,7 @@
whether cache files are being used.
However file access times are not always usable.
On many modern filesystems, they have been disabled.
- On unix, check the filesystem mount options. You may
+ On Unix, check the filesystem mount options. You may
need to remount with 'strictatime'.

@param use_accesstime: Whether access times should be used.
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
index f9c76c9..e1bb12a 100644
--- a/tests/ui_tests.py
+++ b/tests/ui_tests.py
@@ -333,7 +333,7 @@
@unittest.skipUnless(os.name == 'posix', 'requires Unix console')
class TestTerminalUnicodeUnix(UITestCase):

- """Terminal output tests for unix."""
+ """Terminal output tests for Unix."""

def testOutputUnicodeText(self):
pywikibot.output('Заглавная_страница')

To view, visit change 693659. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iba0e373beb0d94a6eb27e44cff0d61f14e6c4408
Gerrit-Change-Number: 693659
Gerrit-PatchSet: 3
Gerrit-Owner: Meno25 <meno25mail@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged