Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bd2305

Browse files
authored
remove Python 2 remnants (#2718)
1 parent 0221341 commit 5bd2305

8 files changed

Lines changed: 1 addition & 26 deletions

File tree

python/prophet/diagnostics.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
import logging
107
from tqdm.auto import tqdm
118
from copy import deepcopy

python/prophet/forecaster.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
import dataclasses
107
import logging
118
from collections import OrderedDict, defaultdict
@@ -19,7 +16,7 @@
1916

2017
from prophet.make_holidays import get_holiday_names, make_holidays_df
2118
from prophet.models import StanBackendEnum, ModelInputData, ModelParams, TrendIndicator, IStanBackend
22-
from prophet.plot import (plot, plot_components)
19+
from prophet.plot import plot, plot_components
2320

2421
logger = logging.getLogger('prophet')
2522
logger.setLevel(logging.INFO)

python/prophet/make_holidays.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
import numpy as np
107
import pandas as pd
118

python/prophet/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
86
from abc import abstractmethod, ABC
97
from dataclasses import dataclass
108
from typing import Sequence, Tuple

python/prophet/plot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
import logging
107

118
import numpy as np

python/prophet/serialize.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
from collections import OrderedDict
107
from copy import deepcopy
118
from io import StringIO

python/prophet/utilities.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) Facebook, Inc. and its affiliates.
32

43
# This source code is licensed under the MIT license found in the
54
# LICENSE file in the root directory of this source tree.
65

7-
from __future__ import absolute_import, division, print_function
8-
96
import numpy as np
107
import pandas as pd
118

python/scripts/generate_holidays_file.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.
55

6-
from __future__ import absolute_import
7-
from __future__ import division
8-
from __future__ import print_function
9-
from __future__ import unicode_literals
10-
116
import re
127
import unicodedata
138

0 commit comments

Comments
 (0)