Skip to content

Commit 0feec81

Browse files
authored
Merge pull request #152 from deathaxe/pr/python-38
Opt-in to python 3.8
2 parents 8abbb57 + 2e44c67 commit 0feec81

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3
1+
3.8

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Helium package for Sublime Text 3
1+
Helium package for Sublime Text
22
===
33

4-
Helium is a package for Sublime Text 3, which provides in-editor code execution and autocomplete in interaction with Jupyter kernels.
5-
The concept of an editor extension communicating Jupyter kernels is inspired by @nteract's splendid Atom package [Hydrogen](https://github.com/nteract/Hydrogen). I want something like it in Sublime Text 3, too.
4+
Helium is a package for Sublime Text, which provides in-editor code execution and autocomplete in interaction with Jupyter kernels.
5+
The concept of an editor extension communicating Jupyter kernels is inspired by @nteract's splendid Atom package [Hydrogen](https://github.com/nteract/Hydrogen). I want something like it in Sublime Text, too.
66

77
Any feedback is highly welcome. I hope this package will help your life with ST3!
88

dependencies.json

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,52 @@
11
{
22
"windows": {
3-
"*": [
3+
"<4000": [
44
"dateutil",
55
"enum",
66
"python-six",
77
"pyzmq"
8+
],
9+
">=4000": [
10+
"dateutil",
11+
"python-six",
12+
"pyzmq",
13+
"tornado"
814
]
915
},
1016
"osx": {
11-
"*": [
17+
"<4000": [
1218
"dateutil",
1319
"enum",
1420
"pexpect",
1521
"ptyprocess",
1622
"python-six",
1723
"pyzmq"
24+
],
25+
">=4000": [
26+
"dateutil",
27+
"pexpect",
28+
"ptyprocess",
29+
"python-six",
30+
"pyzmq",
31+
"tornado"
1832
]
1933
},
2034
"linux": {
21-
"*": [
35+
"<4000": [
2236
"dateutil",
2337
"enum",
2438
"pexpect",
2539
"ptyprocess",
2640
"python-six",
2741
"pyzmq"
42+
],
43+
">=4000": [
44+
"dateutil",
45+
"pexpect",
46+
"ptyprocess",
47+
"python-six",
48+
"pyzmq",
49+
"tornado"
2850
]
2951
}
3052
}

lib/client/jupyter_client/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _kernel_name_changed(self, name, old, new):
7878

7979
@property
8080
def kernel_spec(self):
81-
if self._kernel_spec is None and self.kernel_name is not '':
81+
if self._kernel_spec is None and self.kernel_name != '':
8282
self._kernel_spec = self.kernel_spec_manager.get_kernel_spec(self.kernel_name)
8383
return self._kernel_spec
8484

lib/client/traitlets/config/loader.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def _load_flag(self, cfg):
542542
# rejects: --anything=anything
543543
# --two.word
544544

545-
flag_pattern = re.compile(r'\-\-?\w+[\-\w]*$')
545+
flag_pattern = re.compile(r'\-\-?\w[\-\w]*$')
546546

547547
class KeyValueConfigLoader(CommandLineConfigLoader):
548548
"""A config loader that loads key value pairs from the command line.
@@ -669,7 +669,7 @@ def load_config(self, argv=None, aliases=None, flags=None):
669669

670670
elif flag_pattern.match(raw):
671671
if item in flags:
672-
cfg,help = flags[item]
672+
cfg,_ = flags[item]
673673
self._load_flag(cfg)
674674
else:
675675
raise ArgumentError("Unrecognized flag: '%s'"%raw)
@@ -792,7 +792,7 @@ def _add_arguments(self, aliases=None, flags=None):
792792
nargs = '?'
793793
else:
794794
nargs = None
795-
if len(key) is 1:
795+
if len(key) == 1:
796796
paa('-'+key, '--'+key, type=text_type, dest=value, nargs=nargs)
797797
else:
798798
paa('--'+key, type=text_type, dest=value, nargs=nargs)
@@ -801,7 +801,7 @@ def _add_arguments(self, aliases=None, flags=None):
801801
#
802802
self.alias_flags[self.aliases[key]] = value
803803
continue
804-
if len(key) is 1:
804+
if len(key) == 1:
805805
paa('-'+key, '--'+key, action='append_const', dest='_flags', const=value)
806806
else:
807807
paa('--'+key, action='append_const', dest='_flags', const=value)

0 commit comments

Comments
 (0)