Skip to content

Commit f6cd164

Browse files
committed
Add Python 3 support (closes earwig#16)
1 parent 31a9477 commit f6cd164

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ directories, and more, hopefully providing a great way to get everything
66
up-to-date for short periods of internet access between long periods of none.
77

88
gitup should work on OS X, Linux, and Windows. You should have the latest
9-
version of git and at least Python 2.7 installed.
9+
version of git and either Python 2.7 or Python 3 installed.
1010

1111
# Installation
1212

gitup/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55

66
from __future__ import print_function
77

8-
import ConfigParser as configparser
98
import os
109

10+
try:
11+
import configparser
12+
except ImportError: # Python 2
13+
import ConfigParser as configparser
14+
1115
from colorama import Fore, Style
1216

1317
__all__ = ["get_bookmarks", "add_bookmarks", "delete_bookmarks",

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@
3535
"Natural Language :: English",
3636
"Operating System :: MacOS :: MacOS X",
3737
"Operating System :: POSIX :: Linux",
38+
"Operating System :: Microsoft :: Windows",
3839
"Programming Language :: Python",
3940
"Programming Language :: Python :: 2.7",
41+
"Programming Language :: Python :: 3",
42+
"Programming Language :: Python :: 3.2",
43+
"Programming Language :: Python :: 3.3",
44+
"Programming Language :: Python :: 3.4",
45+
"Programming Language :: Python :: 3.5",
4046
"Topic :: Software Development :: Version Control"
4147
]
4248
)

0 commit comments

Comments
 (0)