Packages update

This commit is contained in:
Ruud
2012-02-11 16:28:06 +01:00
parent 3bbf1126c3
commit 02e01fb2d6
217 changed files with 26395 additions and 21194 deletions
Regular → Executable
+4 -4
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2008-2010 Erik Svensson <erik.public@gmail.com>
# Copyright (c) 2008-2011 Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.
class Session(object):
@@ -8,17 +8,17 @@ class Session(object):
Access the session field can be done through attributes.
The attributes available are the same as the session arguments in the
Transmission RPC specification, but with underscore instead of hypen.
Transmission RPC specification, but with underscore instead of hyphen.
``download-dir`` -> ``download_dir``.
"""
def __init__(self, fields=None):
self.fields = {}
if fields != None:
if fields is not None:
self.update(fields)
def update(self, other):
"""Update the session data from a session arguments dictinary"""
"""Update the session data from a session arguments dictionary"""
fields = None
if isinstance(other, dict):