Skip to content

Commit f08af1f

Browse files
committed
add support for Python 3.5+
1 parent f8f92a9 commit f08af1f

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ coverage.xml
4949
*.pot
5050
# Sphinx documentation
5151
docs/_build/
52+
53+
# env 36
54+
env_36/

bookmanager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def addGroupToPerson(self, person, group):
6363
person_group = PersonGroup(person=person, group=group)
6464
self.session.add(person_group)
6565
self.session.commit()
66-
except Exception, e:
66+
except Exception as e:
6767
return False
6868
return True
6969

@@ -77,7 +77,7 @@ def addEmailToPerson(self, person, email):
7777
self.session.add(person_email)
7878

7979
self.session.commit()
80-
except Exception, e:
80+
except Exception as e:
8181
return False
8282
return True
8383

requirments.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sqlalchemy==1.0.13
1+
sqlalchemy==1.2.12

run_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
the_person = bm.getPersonByName('Alex Long')
7878
assert p == the_person[0]
7979
print("Passed")
80-
print the_person
80+
print(the_person)
8181

8282

8383

0 commit comments

Comments
 (0)