Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion idlexlib/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.22.1.dev0'
__version__ = '1.23.0.dev0'

9 changes: 6 additions & 3 deletions idlexlib/extensionManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@



import imp
#import imp
try:
import importlib
HAS_IMPORTLIB = True
Expand All @@ -70,7 +70,8 @@ def make_config_parser(cfg):
# parse the configuration from the fake file
confparse = IdleConfParser('')
try:
confparse.readfp(fp)
#confparse.readfp(fp)
confparse.read_file(fp)
except BaseException as e:
print('\n Configuration Parse Error', e)
return None
Expand Down Expand Up @@ -141,7 +142,9 @@ def load_extension(self, name):
def find_extension(self, name):
""" Locates an extension """
path = self.extension_dir
info = imp.find_module(name, [path])
#info = imp.find_module(name, [path])
info =importlib.util.find_spec(name)



def load_extension_cfg(self, extName):
Expand Down
6 changes: 4 additions & 2 deletions idlexlib/extensions/CythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,17 @@
from idlelib.ColorDelegator import ColorDelegator, make_pat
from idlelib.configHandler import idleConf
import idlelib.IOBinding
import imp
#import imp
import importlib

DEBUG = False

HAS_CYTHON = True
HAS_RELOAD = False

try:
imp.find_module('cython')
#imp.find_module('cython')
importlib.util.find_spec('cython')
except ImportError:
HAS_CYTHON = False

Expand Down
2 changes: 1 addition & 1 deletion idlexlib/extensions/Squeezer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _countlines(s, linewidth=_LINEWIDTH, tabwidth=_TABWIDTH):

class ExpandingButton(Tkinter.Button):

color_pat = re.compile('\x01?\x1b\[(.*?)m\x02?')
color_pat = re.compile(r'\x01?\x1b\[(.*?)m\x02?')

def __init__(self, s, tags, numoflines, squeezer):
self.s = self.strip_ansi_colors(s)
Expand Down
2 changes: 1 addition & 1 deletion idlexlib/extensions/idlexManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

import os
import re
import imp
#import imp
import __main__

if sys.version < '3':
Expand Down
2 changes: 1 addition & 1 deletion idlexlib/idlefork/idlelib/CallTips.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_entity(expression):
_MAX_COLS = 85
_MAX_LINES = 5 # enough for bytes
_INDENT = ' '*4 # for wrapped signatures
_first_param = re.compile('(?<=\()\w*\,?\s*')
_first_param = re.compile(r'(?<=\()\w*\,?\s*')
_default_callable_argspec = "See source or doc"


Expand Down
2 changes: 1 addition & 1 deletion idlexlib/idlefork/idlelib/FormatParagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def reformat_paragraph(data, limit):
partial = indent1
while i < n and not is_all_white(lines[i]):
# XXX Should take double space after period (etc.) into account
words = re.split("(\s+)", lines[i])
words = re.split(r"(\s+)", lines[i])
for j in range(0, len(words), 2):
word = words[j]
if not word:
Expand Down
2 changes: 1 addition & 1 deletion idlexlib/idlexMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import idlelib
import os
import __main__
import imp
#import imp
import traceback
import re

Expand Down