summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Bishop <stuart.bishop@canonical.com>2020-01-13 16:24:44 +1100
committerStuart Bishop <stuart.bishop@canonical.com>2020-01-13 16:24:44 +1100
commit7b1a844c8ecf2996142ac0eb32201b676e9dcb9a (patch)
tree74b0939d7143f3709604d33649b8556d7d912c6e
parentf6fd61862d51b78b72d72dbf5496d1429a6b52d6 (diff)
downloadpytz-git-7b1a844c8ecf2996142ac0eb32201b676e9dcb9a.tar.gz
Fix remaining references to README.txt
-rw-r--r--Makefile2
-rw-r--r--src/pytz/__init__.py4
-rw-r--r--src/pytz/tests/test_docs.py6
-rw-r--r--src/setup.py2
4 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index e723267..d7ebfce 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,7 @@ doc: docs
docs: dist
mkdir -p build/docs/source/.static
mkdir -p build/docs/built
- cp src/README.txt build/docs/source/index.txt
+ cp src/README.rst build/docs/source/index.txt
cp conf.py build/docs/source/conf.py
sphinx-build build/docs/source build/docs/built
chmod -R og-w build/docs/built
diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py
index d484cbd..958b827 100644
--- a/src/pytz/__init__.py
+++ b/src/pytz/__init__.py
@@ -263,8 +263,8 @@ def _UTC():
module global.
These examples belong in the UTC class above, but it is obscured; or in
- the README.txt, but we are not depending on Python 2.4 so integrating
- the README.txt examples with the unit tests is not trivial.
+ the README.rst, but we are not depending on Python 2.4 so integrating
+ the README.rst examples with the unit tests is not trivial.
>>> import datetime, pickle
>>> dt = datetime.datetime(2005, 3, 1, 14, 13, 21, tzinfo=utc)
diff --git a/src/pytz/tests/test_docs.py b/src/pytz/tests/test_docs.py
index c4ed4a3..d3b4b94 100644
--- a/src/pytz/tests/test_docs.py
+++ b/src/pytz/tests/test_docs.py
@@ -7,12 +7,12 @@ import sys
THIS_DIR = os.path.dirname(__file__)
-README = os.path.join(THIS_DIR, os.pardir, os.pardir, 'README.txt')
+README = os.path.join(THIS_DIR, os.pardir, os.pardir, 'README.rst')
class DocumentationTestCase(unittest.TestCase):
def test_readme_encoding(self):
- '''Confirm the README.txt is pure ASCII.'''
+ '''Confirm the README.rst is ASCII.'''
f = open(README, 'rb')
try:
f.read().decode('ASCII')
@@ -24,7 +24,7 @@ def test_suite():
"For the Z3 test runner"
return unittest.TestSuite((
DocumentationTestCase('test_readme_encoding'),
- DocFileSuite(os.path.join(os.pardir, os.pardir, 'README.txt'))))
+ DocFileSuite(os.path.join(os.pardir, os.pardir, 'README.rst'))))
if __name__ == '__main__':
diff --git a/src/setup.py b/src/setup.py
index cc00a3f..fa9a592 100644
--- a/src/setup.py
+++ b/src/setup.py
@@ -29,7 +29,7 @@ setup(
version=pytz.VERSION,
zip_safe=True,
description='World timezone definitions, modern and historical',
- long_description=open('README.txt', 'r').read(),
+ long_description=open('README.rst', 'r').read(),
author=me,
author_email=memail,
maintainer=me,