Fixed text updating for UTF-8 strings.
[redakcja.git] / lib / wlrepo / mercurial_backend / library.py
index 82b5263..7a33bf3 100644 (file)
@@ -255,9 +255,6 @@ class MercurialLibrary(wlrepo.Library):
             return None
 
         if isinstance(s, unicode):
-            s = s.encode('utf-8')
-
-        if ' ' in s:
-            raise ValueError('Whitespace is forbidden!')
+            s = s.encode('utf-8')        
 
         return s
\ No newline at end of file