Commits

Jason R. Coombs committed 75850da

Removed unicode_literal support to support python 2.5 again

Comments (0)

Files changed (2)

hgtools/managers/base.py

 to Mercurial functionality.
 """
 
-from __future__ import with_statement, unicode_literals
+from __future__ import with_statement
 
-import os
 import posixpath
 import itertools
 
 from hgtools.py25compat import next
 from hgtools import versioning
-import hgtools
 
 class HGRepoManager(versioning.VersionManagement, object):
 	"""
 	Return the first element from the iterable, but raise an exception
 	if elements remain in the iterable after the first.
 
-	>>> one(['val'])
-	u'val'
+	>>> one([3])
+	3
 	>>> one(['val', 'other'])
 	Traceback (most recent call last):
 	...
 Copyright © 2010-2011 Jason R. Coombs
 """
 
-from __future__ import with_statement, unicode_literals
+from __future__ import with_statement
 
 import setuptools
 import hgtools.plugins
 #  directions in the README or see jaraco.util for an example.
 
 setup_params = dict(
-	# convert to bytes to work around UnicodeDecodeError when using bdist --formats gztar
-	name=str("hgtools"),
+	name="hgtools",
 	version=hgtools.plugins.calculate_version(options=dict(increment='1.0')),
 	author="Jannis Leidel/Jason R. Coombs",
 	author_email="jaraco@jaraco.com",