X-Git-Url: https://git.jsancho.org/?p=mojodb.git;a=blobdiff_plain;f=database.py;h=ad1e1297050326cd6131313032d1874d08940dbe;hp=1b378bf468c60cb0d7645261e57ce2c2ee467a22;hb=2c1872fd5004c8464e146081b61783de47b87e2d;hpb=792f961fb96bb8533e540970c54f43b958d77296 diff --git a/database.py b/database.py index 1b378bf..ad1e129 100644 --- a/database.py +++ b/database.py @@ -24,7 +24,7 @@ from collection import Collection class Database(object): def __init__(self, connection, db_name): self.connection = connection - self.db_name = unicode(db_name) + self.db_name = str(db_name) def __getattr__(self, table_name): return Collection(self, table_name)