Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 1467a3ac121897c2ad7512d664478d8916a35217 authored by Miss Islington (bot) on 10 December 2018, 11:28:13 UTC, committed by GitHub on 10 December 2018, 11:28:13 UTC
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas <features.h> (included indirectly by <string.h>) defines _POSIX_C_SOURCE as 199506L. (cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 1a7b62d
Tip revision: 1467a3ac121897c2ad7512d664478d8916a35217 authored by Miss Islington (bot) on 10 December 2018, 11:28:13 UTC
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Tip revision: 1467a3a
zzdummy.py
"Example extension, also used for testing."
from idlelib.config import idleConf
ztext = idleConf.GetOption('extensions', 'ZzDummy', 'z-text')
class ZzDummy:
## menudefs = [
## ('format', [
## ('Z in', '<<z-in>>'),
## ('Z out', '<<z-out>>'),
## ] )
## ]
def __init__(self, editwin):
self.text = editwin.text
z_in = False
@classmethod
def reload(cls):
cls.ztext = idleConf.GetOption('extensions', 'ZzDummy', 'z-text')
def z_in_event(self, event):
"""
"""
text = self.text
text.undo_block_start()
for line in range(1, text.index('end')):
text.insert('%d.0', ztest)
text.undo_block_stop()
return "break"
def z_out_event(self, event): pass
ZzDummy.reload()
##if __name__ == "__main__":
## import unittest
## unittest.main('idlelib.idle_test.test_zzdummy',
## verbosity=2, exit=False)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...