Skip to content

Commit affb82f

Browse files
authored
Drop python 35 (#61)
* Run pyupgrade --py36-plus
1 parent dce9e4f commit affb82f

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Dependencies
3232

3333
scikit-learn-extra requires,
3434

35-
- Python (>=3.5)
35+
- Python (>=3.6)
3636
- scikit-learn (>=0.21), and its dependencies
3737

3838

doc/conf.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# project-template documentation build configuration file, created by
43
# sphinx-quickstart on Mon Jan 18 14:44:12 2016.
@@ -78,8 +77,8 @@
7877
master_doc = "index"
7978

8079
# General information about the project.
81-
project = u"scikit-learn-extra"
82-
copyright = u"2019, scikit-learn-extra developpers"
80+
project = "scikit-learn-extra"
81+
copyright = "2019, scikit-learn-extra developpers"
8382

8483
# The version info for the project you're documenting, acts as replacement for
8584
# |version| and |release|, also used in various other places throughout the
@@ -237,8 +236,8 @@
237236
(
238237
"index",
239238
"project-template.tex",
240-
u"project-template Documentation",
241-
u"Vighnesh Birodkar",
239+
"project-template Documentation",
240+
"Vighnesh Birodkar",
242241
"manual",
243242
)
244243
]
@@ -272,8 +271,8 @@
272271
(
273272
"index",
274273
"project-template",
275-
u"project-template Documentation",
276-
[u"Vighnesh Birodkar"],
274+
"project-template Documentation",
275+
["Vighnesh Birodkar"],
277276
1,
278277
)
279278
]
@@ -291,8 +290,8 @@
291290
(
292291
"index",
293292
"project-template",
294-
u"project-template Documentation",
295-
u"Vighnesh Birodkar",
293+
"project-template Documentation",
294+
"Vighnesh Birodkar",
296295
"project-template",
297296
"One line description of project.",
298297
"Miscellaneous",
@@ -316,7 +315,7 @@
316315
# intersphinx configuration
317316
intersphinx_mapping = {
318317
"python": (
319-
"https://docs.python.org/{.major}".format(sys.version_info),
318+
f"https://docs.python.org/{sys.version_info.major}",
320319
None,
321320
),
322321
"numpy": ("https://docs.scipy.org/doc/numpy/", None),

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Dependencies
66

77
scikit-learn-extra requires,
88

9-
- Python (>=3.5)
9+
- Python (>=3.6)
1010
- scikit-learn (>=0.21), and its dependencies
1111

1212

examples/plot_kmedoids_digits.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
=============================================================
43
A demo of K-Medoids clustering on the handwritten digits data

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"Operating System :: POSIX",
3939
"Operating System :: Unix",
4040
"Operating System :: MacOS",
41-
"Programming Language :: Python :: 3.5",
4241
"Programming Language :: Python :: 3.6",
4342
"Programming Language :: Python :: 3.7",
4443
"Programming Language :: Python :: 3.8",

sklearn_extra/cluster/_k_medoids.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""K-medoids clustering"""
32

43
# Authors: Timo Erkkilä <[email protected]>
@@ -341,9 +340,7 @@ def _initialize_medoids(self, D, n_clusters, random_state_):
341340
:n_clusters
342341
]
343342
else:
344-
raise ValueError(
345-
"init value '{init}' not recognized".format(init=self.init)
346-
)
343+
raise ValueError(f"init value '{self.init}' not recognized")
347344

348345
return medoids
349346

0 commit comments

Comments
 (0)