Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Added compatibility for pendulum 2.10 #409

Open
wants to merge 4 commits into
base: 0.9
Choose a base branch
from
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 orator/connectors/mysql_connector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

import re
from pendulum import Pendulum, Date
from pendulum import DateTime as Pendulum, Date

try:
import MySQLdb as mysql
Expand Down
2 changes: 1 addition & 1 deletion orator/connectors/sqlite_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from pendulum import Pendulum, Date
from pendulum import DateTime as Pendulum, Date

try:
import sqlite3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cleo = "^0.6"
inflection = "^0.3"
Faker = "^0.8"
lazy-object-proxy = "^1.2"
pendulum = "^1.4"
pendulum = "^2.0"
pyaml = "^16.12"
pyyaml = "^5.1"
Pygments = "^2.2"
Expand Down
2 changes: 1 addition & 1 deletion tests/orm/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import hashlib
import time
import datetime
from pendulum import Pendulum
from pendulum import DateTime as Pendulum
from flexmock import flexmock, flexmock_teardown
from .. import OratorTestCase, mock
from ..utils import MockModel, MockQueryBuilder, MockConnection, MockProcessor
Expand Down