Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: franckcuny/python-ddlockclient
base: de63d08c57
...
head fork: franckcuny/python-ddlockclient
compare: 0a74dd1c6d
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 2 contributors
Commits on May 18, 2012
@stanimoto stanimoto Merge pull request #2 from franckcuny/master
prepare for release
35b240f
Satoshi Tanimoto fix up bdeaf9c
Commits on May 24, 2012
@franckcuny `eurl_repl` receives a match object argument.
As `eurl_repl` receives a match argument, it should do the transformation from
string to integer on the first group of the object, not the whole object.
0a74dd1
View
4 MANIFEST.in
@@ -1,3 +1,3 @@
include README.rst
-include requirements-tests.txt
-include tests/*.py
+include requirements-test.txt
+include tests/*.py
View
2  ddlockclient/__init__.py
@@ -8,7 +8,7 @@
def eurl_repl(m):
- return "%%%02X" % ord(m)
+ return "%%%02X" % ord(m.group(1))
def eurl(name):
View
1  setup.py
@@ -6,6 +6,7 @@
name = 'DDLockClient',
version = version,
author = 'Satoshi Tanimoto',
+ author_email = 'tanimoto.satoshi@gmail.com',
description = 'Python client library for the Danga distributed lock daemon',
long_description = open('README.rst').read(),
url = 'http://github.com/stanimoto/python-ddlockclient',
View
8 tests/test_client.py
@@ -1,6 +1,6 @@
import unittest
import re
-from ddlockclient import DDLockClient, DDLock
+from ddlockclient import DDLockClient, DDLock, eurl
servers = ['localhost']
@@ -87,3 +87,9 @@ def test_e(self):
lock = self._lock('test')
self.assertTrue(isinstance(lock, DDLock),
"able to lock 'test' again")
+
+ def test_eurl(self):
+ name = eurl('foo|bar')
+ self.assertEqual(name, "foo%7Cbar")
+ name = eurl('foo|bar/baz')
+ self.assertEqual(name, "foo%7Cbar%2Fbaz")

No commit comments for this range

Something went wrong with that request. Please try again.