summaryrefslogtreecommitdiff
path: root/examples/getNTPserversNew.py
Commit message (Collapse)AuthorAgeFilesLines
* Update some examples to latest pyparsing style, PEP8 namesptmcg2023-04-011-4/+4
|
* Blacken the project (#141)Jon Dufresne2019-10-311-4/+13
|
* Use pyupgrade to upgrade the code to use Python3 conventions (#138)Jon Dufresne2019-10-241-1/+1
| | | | | | | | | | | | The pyupgrade project is available at https://github.com/asottile/pyupgrade and can be installed through pip. The pyupgrade tool automatically upgrades syntax for newer versions of the language. As pyparsing is now Python 3 only, can apply some cleanups and simplifications. Ran the tool using the following command: $ find . -name \*.py -exec pyupgrade --py3-plus {} \; For now, pyparsing.py was skipped while it is refactored to a package.
* Py3 cleanup: Remove workaround for Python2 urllib (#143)Jon Dufresne2019-10-191-7/+1
| | | | For Python 3 only code, the import path is known and stable. Can remove the ImportError workaround.
* Py3 cleanup: Remove use of closing() with urlopen() (#145)Jon Dufresne2019-10-171-2/+1
| | | | | | | | | In Python 3, urlopen() can always be used as a context manager. Wrapping with closing() is not necessary. https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen > This function always returns an object which can work as a context > manager …
* Fixed dict structure in makeHTMLTags expressions, and added tag_body ↵Paul McGuire2019-04-061-35/+36
| | | | attribute to the generated start expression giving easy access to a SkipTo(closeTag) that will parse the tag's body text; some code cleanup and removed duplication among examples
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-1/+1
| | | | compatibility
* Use HTTPS URLs where available in docs, examples, and commentsJon Dufresne2018-12-251-1/+1
|
* Remove unused imports throughout projectJon Dufresne2018-12-241-1/+1
| | | | | | | | | | | | | Unused imports were discovered using flake8. By removing the unused imports, the code is a bit friendlier to new contributors as it is clearer what is being used and not simply leftover from previous refactoring. The flake8 command: $ flake8 . --select F401 http://flake8.pycqa.org/
* Trim trailing white space throughout the projectJon Dufresne2018-12-221-2/+2
| | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* Upgrade Python syntax with pyupgradeHugo2018-08-211-1/+1
|
* Move src to rootCengiz Kaygusuz2017-11-201-0/+35