diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/superset/viz.py b/superset/viz.py
index <HASH>..<HASH> 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -286,9 +286,12 @@ class BaseViz(object):
def get_payload(self, query_obj=None):
"""Returns a payload of metadata and data"""
payload = self.get_df_payload(query_obj)
- ... | Fix markup broken since cache related changes (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,6 @@ setup(
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.7',
'Pro... | Remove support for python 2.x | py |
diff --git a/slave/buildslave/test/unit/test_slave_commands_base.py b/slave/buildslave/test/unit/test_slave_commands_base.py
index <HASH>..<HASH> 100644
--- a/slave/buildslave/test/unit/test_slave_commands_base.py
+++ b/slave/buildslave/test/unit/test_slave_commands_base.py
@@ -193,7 +193,7 @@ class TestShellCommand(un... | env vars do not get native newlines .. so don't test for newlines at all (refs #<I>) | py |
diff --git a/tests/gui/test_selection.py b/tests/gui/test_selection.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_selection.py
+++ b/tests/gui/test_selection.py
@@ -291,3 +291,11 @@ def test_focus():
assert len(selection.states) == 0
assert focus_signal_observer.count == 3
assert selection_signal_o... | add test main function to trigger selection tests independently | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ install_requires = [
'Flask-Assets>=0.12',
'Flask-Collect==1.2.2',
'Flask>=0.11.1',
- 'node-semver>=0.1.1',
+ 'node-semver>=0.1.1,<0.2.0', # FIXME troubleshooting#22
'speaklater>=1.3',... | installation: pin node-semver to < <I> | py |
diff --git a/src/gimpy/examples/simplex_test.py b/src/gimpy/examples/simplex_test.py
index <HASH>..<HASH> 100644
--- a/src/gimpy/examples/simplex_test.py
+++ b/src/gimpy/examples/simplex_test.py
@@ -5,7 +5,7 @@ tests network simplex method and cycle canceling method of GIMPy.
from coinor.gimpy import Graph, DIRECTED... | Fixing #7 by removing call to GLPK | py |
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index <HASH>..<HASH> 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -132,7 +132,7 @@ LINTERS = {
'run_per_file': True
},
'yaml-lint': {
- 'install': [['gem', 'install', 'yaml-lint']],
... | run 'bundle install' during ruby gem installs (#<I>) | py |
diff --git a/client/__init__.py b/client/__init__.py
index <HASH>..<HASH> 100644
--- a/client/__init__.py
+++ b/client/__init__.py
@@ -68,11 +68,13 @@ class DCIClient(object):
data=json.dumps(data),
headers={'If-Match': etag})
- def get(self, path, where={}, embedded={}, params=None):
- ... | client: add support for 'in' operator The 'in' operator has been renamed _in to avoid conflict with Python 'in' operator. The 'in' operator can be used to get a limited set of items. Change-Id: If3b0a<I>b5f<I>fc2acc<I>e3dac2bfbb4d9c | py |
diff --git a/hdl_toolkit/simulator/utils.py b/hdl_toolkit/simulator/utils.py
index <HASH>..<HASH> 100644
--- a/hdl_toolkit/simulator/utils.py
+++ b/hdl_toolkit/simulator/utils.py
@@ -1,3 +1,3 @@
def valueHasChanged(valA, valB):
- return valA.val != valB.val or valA.vldMask != valB.vldMask
+ return valA.val is ... | change != to is operator for value | py |
diff --git a/parsimonious/tests/test_grammar.py b/parsimonious/tests/test_grammar.py
index <HASH>..<HASH> 100644
--- a/parsimonious/tests/test_grammar.py
+++ b/parsimonious/tests/test_grammar.py
@@ -404,6 +404,12 @@ class GrammarTests(TestCase):
def test_repr(self):
self.assertTrue(repr(Grammar(r'foo = "a... | Add failing test that rule ordering is preserved. Unsurprisingly python <I> preserves the ordering. | py |
diff --git a/ibis/backends/sqlite/tests/test_client.py b/ibis/backends/sqlite/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/sqlite/tests/test_client.py
+++ b/ibis/backends/sqlite/tests/test_client.py
@@ -59,9 +59,8 @@ def test_compile_toplevel():
# it works!
expr = t.foo.sum()
resu... | fix(sqlite): test case with whitespace at the end of the line | py |
diff --git a/scout/commands/base.py b/scout/commands/base.py
index <HASH>..<HASH> 100644
--- a/scout/commands/base.py
+++ b/scout/commands/base.py
@@ -33,8 +33,9 @@ LOG = logging.getLogger(__name__)
help="Set the level of log output.", show_default=True)
@click.option('--demo', is_flag=True, help="If th... | reintroduce config file option, just for the sake of testing on stage | py |
diff --git a/nanoplot/version.py b/nanoplot/version.py
index <HASH>..<HASH> 100644
--- a/nanoplot/version.py
+++ b/nanoplot/version.py
@@ -1 +1 @@
-__version__ = "0.14.4"
+__version__ = "0.15.0" | bumping version to <I> | py |
diff --git a/astropy_helpers/sphinx/ext/smart_resolver.py b/astropy_helpers/sphinx/ext/smart_resolver.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/ext/smart_resolver.py
+++ b/astropy_helpers/sphinx/ext/smart_resolver.py
@@ -17,7 +17,7 @@ from docutils.nodes import literal
def process_docstring(app, ... | Fix smart resolver for descriptor classes | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -66,10 +66,14 @@ class test_twitter_bot_utils(unittest.TestCase):
assert isinstance(twitter, api.API)
- def test_api_args(self):
- brokenconfig = os.path.join(os.path.... | Distinguish btw tests for missing and broken config | py |
diff --git a/glad/__init__.py b/glad/__init__.py
index <HASH>..<HASH> 100644
--- a/glad/__init__.py
+++ b/glad/__init__.py
@@ -1,3 +1,3 @@
-__version__ = '0.1.13a0'
+__version__ = '0.1.14a0' | setup: Bumped version: <I>a0. | py |
diff --git a/cslbot/helpers/textutils.py b/cslbot/helpers/textutils.py
index <HASH>..<HASH> 100644
--- a/cslbot/helpers/textutils.py
+++ b/cslbot/helpers/textutils.py
@@ -396,8 +396,13 @@ def gen_djones(msg):
return filter_output
+def gen_aniceshinyurl(self):
+ return "A nice shiny url would go here if some... | add aniceshinyurl filter | py |
diff --git a/salt/modules/nilrt_ip.py b/salt/modules/nilrt_ip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nilrt_ip.py
+++ b/salt/modules/nilrt_ip.py
@@ -17,8 +17,16 @@ import salt.utils
import salt.utils.validate.net
import salt.exceptions
# Import third party libs
-import pyconnman
-import dbus
+try:
+ imp... | Gate 3rd-party library imports (#<I>) | py |
diff --git a/tests/test_schema.py b/tests/test_schema.py
index <HASH>..<HASH> 100755
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -2248,3 +2248,14 @@ class TestLoadOnly:
assert 'str_dump_only' not in result
assert 'str_load_only' in result
assert 'str_regular' in result
+
+ # r... | Add regression test for require_tld=False in the Url field | py |
diff --git a/rotunicode/utils.py b/rotunicode/utils.py
index <HASH>..<HASH> 100644
--- a/rotunicode/utils.py
+++ b/rotunicode/utils.py
@@ -2,6 +2,16 @@
from __future__ import unicode_literals
from os.path import splitext
+import codecs
+
+from rotunicode import RotUnicode
+
+
+def register_codec():
+ try:
+ ... | automatically register codec to make shorthand methods easier to import | py |
diff --git a/fastbill/__init__.py b/fastbill/__init__.py
index <HASH>..<HASH> 100644
--- a/fastbill/__init__.py
+++ b/fastbill/__init__.py
@@ -87,10 +87,9 @@ class FastbillWrapper(object):
SERVICE_URL = "https://automatic.fastbill.com/api/1.0/api.php"
- def __init__(self, email, api_key, url = None):
-
- ... | Make it PEP8 conform and improve variable naming | py |
diff --git a/hashers_passlib/__init__.py b/hashers_passlib/__init__.py
index <HASH>..<HASH> 100644
--- a/hashers_passlib/__init__.py
+++ b/hashers_passlib/__init__.py
@@ -60,14 +60,10 @@ class ModularCryptHasher(PasslibHasher):
class RenamedModularCryptHasher(PasslibHasher):
def verify(self, password, encoded):... | noticed more similar shapes ;-) | py |
diff --git a/pydriller/git_repository.py b/pydriller/git_repository.py
index <HASH>..<HASH> 100644
--- a/pydriller/git_repository.py
+++ b/pydriller/git_repository.py
@@ -47,6 +47,7 @@ class GitRepository:
self.project_name = self.path.name
self.main_branch = None
self.lock = Lock()
+ ... | fix bug that was calling hyper_blam_available every time | py |
diff --git a/mpop/satin/nwcsaf_pps.py b/mpop/satin/nwcsaf_pps.py
index <HASH>..<HASH> 100644
--- a/mpop/satin/nwcsaf_pps.py
+++ b/mpop/satin/nwcsaf_pps.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (c) 2010, 2012.
+# Copyright (c) 2010, 2012, 2013.
# Author(s):
@@ -438,7 +438,7 @... | Make orbit number an 5-character string (padding with '0') | py |
diff --git a/juju/model.py b/juju/model.py
index <HASH>..<HASH> 100644
--- a/juju/model.py
+++ b/juju/model.py
@@ -917,12 +917,15 @@ class Model:
pass # can't stop on a closed conn
break
for delta in results.deltas:
+ ent... | Handle strict mode with an empty entity | py |
diff --git a/metpy/plots/ctables.py b/metpy/plots/ctables.py
index <HASH>..<HASH> 100644
--- a/metpy/plots/ctables.py
+++ b/metpy/plots/ctables.py
@@ -11,7 +11,11 @@ TABLE_EXT = '.tbl'
def _parse(s):
if hasattr(s, 'decode'):
s = s.decode('ascii')
- return ast.literal_eval(s)
+
+ if not s.startswith... | Allow full comment lines in colormap files. | py |
diff --git a/bandicoot/tests/generate_user.py b/bandicoot/tests/generate_user.py
index <HASH>..<HASH> 100755
--- a/bandicoot/tests/generate_user.py
+++ b/bandicoot/tests/generate_user.py
@@ -66,8 +66,8 @@ def sample_user(number_records=1482, seed=42):
# set records from ego
for c_id in sorted(co... | Improved efficiency for sample_user() Changed use of copy.deepcopy() | py |
diff --git a/starbound/__init__.py b/starbound/__init__.py
index <HASH>..<HASH> 100644
--- a/starbound/__init__.py
+++ b/starbound/__init__.py
@@ -106,3 +106,14 @@ def read_versioned_json(stream):
version, = struct.unpack('>i', stream.read(4))
data = sbon.read_dynamic(stream)
return VersionedJSON(name, v... | Support writing versioned JSON and SBVJ<I> files | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,16 @@ setup(
'pyflakes': ['pyflakes'],
'pylint': ['pylint'],
'radon': ['radon'],
+ 'dev': [
+ 'bandit',
+ 'coverage',
+ 'eradicate',
+ 'no... | Add dev extras to setup.py | py |
diff --git a/tests/test_interface.py b/tests/test_interface.py
index <HASH>..<HASH> 100644
--- a/tests/test_interface.py
+++ b/tests/test_interface.py
@@ -4,6 +4,9 @@ from __future__ import unicode_literals
import unittest
import resources
+from nose.plugins.skip import SkipTest
+raise SkipTest()
+
class TestInt... | Skip these old tests for now until we decide whether to keep them. | py |
diff --git a/bedup/compat.py b/bedup/compat.py
index <HASH>..<HASH> 100644
--- a/bedup/compat.py
+++ b/bedup/compat.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with bedup. If not, see <http://www.gnu.org/licenses/>.
+import subprocess
import sys
@@ -28,3 +2... | Monkey-patched backport for Python <I> compatibility. | py |
diff --git a/taxii2client/__init__.py b/taxii2client/__init__.py
index <HASH>..<HASH> 100644
--- a/taxii2client/__init__.py
+++ b/taxii2client/__init__.py
@@ -478,7 +478,7 @@ class _HTTPConnection(object):
resp.raise_for_status()
content_type = resp.headers['Content-Type']
- if content_type !... | Accept more flexible Content-Type strings Accept Content-Type strings that aren't exact matches but start with the same format. This allows for options like 'charset' to be used in the Content-Type. Fixes #<I>. | py |
diff --git a/django_static/templatetags/django_static.py b/django_static/templatetags/django_static.py
index <HASH>..<HASH> 100644
--- a/django_static/templatetags/django_static.py
+++ b/django_static/templatetags/django_static.py
@@ -488,7 +488,7 @@ def _static_file(filename,
content = new_file_content.ge... | Consequent naming of utf_8. | py |
diff --git a/tests/test_system_models.py b/tests/test_system_models.py
index <HASH>..<HASH> 100644
--- a/tests/test_system_models.py
+++ b/tests/test_system_models.py
@@ -63,6 +63,7 @@ class SystemPartTest(unittest.TestCase):
# There can be other backups in the folder
prev_backups = set(self._get_bac... | test_freeze fails, possibly due to race condition | py |
diff --git a/rest_auth/registration/views.py b/rest_auth/registration/views.py
index <HASH>..<HASH> 100644
--- a/rest_auth/registration/views.py
+++ b/rest_auth/registration/views.py
@@ -26,7 +26,6 @@ class Register(APIView, SignupView):
"""
permission_classes = (AllowAny,)
- # user_serializer_class = Us... | well, that was an easy cleanup, now it is nice and consistent | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,15 +23,12 @@ for dirpath, dirnames, filenames in os.walk(package_dir):
def get_requirements():
- requirements = []
+ requirements = ['six', 'pysftp']
+ # Bundled with Python 2.7+
try:
import imp... | Add six to requirements #<I> | py |
diff --git a/isort/main.py b/isort/main.py
index <HASH>..<HASH> 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -169,7 +169,7 @@ class ISortCommand(setuptools.Command):
except IOError as e:
print("WARNING: Unable to parse file {0} due to {1}".format(python_file, e))
if w... | Use sys.exit(), not exit() exit() comes from the site module and is not meant for program use | py |
diff --git a/hsreplay/dumper.py b/hsreplay/dumper.py
index <HASH>..<HASH> 100644
--- a/hsreplay/dumper.py
+++ b/hsreplay/dumper.py
@@ -135,7 +135,7 @@ def game_to_xml(game, game_meta=None, player_meta=None, decks=None):
players = game_element.nodes[1:3]
if game_meta is not None:
- game_element.nodes[0]._attribut... | Pair game_meta with the <Game> element instead of first packet | py |
diff --git a/pyeda/expr.py b/pyeda/expr.py
index <HASH>..<HASH> 100644
--- a/pyeda/expr.py
+++ b/pyeda/expr.py
@@ -584,7 +584,6 @@ class ExprVariable(Literal):
except KeyError:
self = super(Literal, cls).__new__(cls)
self._var = _var
- self._support = frozenset((self, ))
... | Simplify Variable/Complement support property | py |
diff --git a/girder/models/__init__.py b/girder/models/__init__.py
index <HASH>..<HASH> 100644
--- a/girder/models/__init__.py
+++ b/girder/models/__init__.py
@@ -35,7 +35,7 @@ def getDbConfig():
res = {'user': matcher.group(1),
'password': matcher.group(2),
'host': matcher.grou... | When pulling config from mongohq, we need to convert the port to a number. | py |
diff --git a/asana_hub/actions/sync.py b/asana_hub/actions/sync.py
index <HASH>..<HASH> 100644
--- a/asana_hub/actions/sync.py
+++ b/asana_hub/actions/sync.py
@@ -224,6 +224,16 @@ class Sync(Action):
labels=labels,
label_tag_map=label_tag_map)
+ ... | create story when linking task 1st time | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -408,6 +408,9 @@ class IterResult(object):
def init_workers():
"""Waiting function, used to wake up the process pool"""
setproctitl... | Unregister raiseMasterKilled in oq-workers to avoid deadlock [skip hazardlib] | py |
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py
index <HASH>..<HASH> 100755
--- a/mockupdb/__init__.py
+++ b/mockupdb/__init__.py
@@ -961,7 +961,9 @@ class Matcher(object):
raise TypeError(
"Can't compare ordered and unordered document types:"
... | Fix key-sequence matching if a key is "absent". | py |
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py
index <HASH>..<HASH> 100644
--- a/tests/test_menu_launcher.py
+++ b/tests/test_menu_launcher.py
@@ -174,7 +174,9 @@ def test_running_menu():
child.sendline('1')
child.expect('Return to Mode menu')
# return to mode
- child.sendline(... | Testing the ability to issue up arrows through pexpect. | py |
diff --git a/crabpy/gateway/capakey.py b/crabpy/gateway/capakey.py
index <HASH>..<HASH> 100644
--- a/crabpy/gateway/capakey.py
+++ b/crabpy/gateway/capakey.py
@@ -713,7 +713,6 @@ class CapakeyRestGateway(CapakeyGateway):
def creator():
url = self.url + '/municipality/' + str(gid) + '/department/' ... | removed print statement refs #<I> | py |
diff --git a/gridtk/local.py b/gridtk/local.py
index <HASH>..<HASH> 100644
--- a/gridtk/local.py
+++ b/gridtk/local.py
@@ -179,7 +179,7 @@ class JobManagerLocal(JobManager):
self.lock()
job, array_job = self._job_and_array(job_id, array_id)
if array_job: job = array_job
- ... | Fixed crash tha could happen due to parallel access. | py |
diff --git a/mapchete/_processing.py b/mapchete/_processing.py
index <HASH>..<HASH> 100644
--- a/mapchete/_processing.py
+++ b/mapchete/_processing.py
@@ -308,11 +308,15 @@ def compute(
1,
):
if raise_errors: # pragma: no cover
- if future.status in ["e... | workaround for concurrent.futures api | py |
diff --git a/tweepy/models.py b/tweepy/models.py
index <HASH>..<HASH> 100644
--- a/tweepy/models.py
+++ b/tweepy/models.py
@@ -52,17 +52,17 @@ class User(Model):
self._api.destroy_friendship(user_id=self.id)
self.following = False
- def lists_memberships(self):
- return self._api.lists_mem... | Allow for pagination and other parameters for some helper methods in User model. Merged from bwesterb/tweepy @5c7a<I>de1ee<I>fae8c4a1eef<I>c<I>cb<I>e<I> | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -30,7 +30,7 @@ import platform
if "windows" in platform.system().lower():
raise ImportError("sh %s is currently only supported on linux and osx. \
-please install pbs 0.109 (http://pypi.python.org/pypi/pbs) for windows \
+please i... | updating windows import error to reference new pbs version that has the deprecation warning for non-windows users | py |
diff --git a/cachalot/apps.py b/cachalot/apps.py
index <HASH>..<HASH> 100644
--- a/cachalot/apps.py
+++ b/cachalot/apps.py
@@ -1,3 +1,4 @@
+import copyreg
from django import __version__ as django__version__, VERSION as django_version
from django.apps import AppConfig
from django.conf import settings
@@ -93,4 +94,7 @... | Cast memoryview objects to bytes to be able to pickle them. (#<I>) Fixes #<I> | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -805,10 +805,11 @@ class Exchange(object):
return orders
def market(self, symbol):
- isString = isinstance(symbol, basestri... | better error reporting from self.market in python if symbol was not found | py |
diff --git a/pymc3/sampling.py b/pymc3/sampling.py
index <HASH>..<HASH> 100644
--- a/pymc3/sampling.py
+++ b/pymc3/sampling.py
@@ -526,12 +526,16 @@ def sample_ppc(trace, samples=None, model=None, vars=None, size=None,
else:
indices = randint(0, len(trace), samples)
- ppc = defaultdict(list)
- for... | Close progressbar in sample_ppc | py |
diff --git a/hamster/applet.py b/hamster/applet.py
index <HASH>..<HASH> 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -139,7 +139,7 @@ class HamsterApplet(object):
# if we have date change - let's finish previous task and start a new one
if prev_date and prev_date != self.tod... | don't touch facts on midnight, if there is no previous activity. solves bug <I> svn path=/trunk/; revision=<I> | py |
diff --git a/twilio/twiml.py b/twilio/twiml.py
index <HASH>..<HASH> 100644
--- a/twilio/twiml.py
+++ b/twilio/twiml.py
@@ -81,7 +81,6 @@ class Verb(object):
return el
def append(self, verb):
- print self.nestables
if not self.nestables or verb.name not in self.nestables:
rai... | Removed print statement from Response.append because it breaks CGI apps. | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -461,6 +461,8 @@ class Hero(Character):
logging.info("%r loses %r durability", self.controller.weapon)
self.controller.weapon.damage += 1
+ return ret
+
def summon(self):
sup... | Forward the return value in Game.attack() | py |
diff --git a/tests/test_object.py b/tests/test_object.py
index <HASH>..<HASH> 100644
--- a/tests/test_object.py
+++ b/tests/test_object.py
@@ -249,7 +249,7 @@ def test_relation():
@with_setup(setup_func)
def test_pointer():
user = leancloud.User.create_without_data('555ed132e4b032867865884e')
- GameScore = le... | delete places that generate GameScore object excpet in query_test | py |
diff --git a/pyxel/__init__.py b/pyxel/__init__.py
index <HASH>..<HASH> 100644
--- a/pyxel/__init__.py
+++ b/pyxel/__init__.py
@@ -1,6 +1,6 @@
from typing import Any, Callable, List
-from . import constants
+from . import constants # type: ignore
#
# constants
@@ -271,7 +271,7 @@ def init(
border_color: in... | Removed all mypy errors with special comments | py |
diff --git a/pyoko/db/base.py b/pyoko/db/base.py
index <HASH>..<HASH> 100644
--- a/pyoko/db/base.py
+++ b/pyoko/db/base.py
@@ -154,7 +154,7 @@ class DBObjects(object):
obj.__dict__[k] = []
elif k == '_solr_cache':
obj.__dict__[k] = {}
- elif k.endswith(('bucket'... | added current_context to no-deepcopy list of DBObjects | py |
diff --git a/src/landslide/utils.py b/src/landslide/utils.py
index <HASH>..<HASH> 100644
--- a/src/landslide/utils.py
+++ b/src/landslide/utils.py
@@ -5,25 +5,13 @@ import base64
import mimetypes
-def get_abs_path_url(path):
- """ Returns the absolute url for a given local path.
- """
- return "file://%s"... | Simplify file path generation in utils | py |
diff --git a/tests/test_chamber_of_deputies_dataset.py b/tests/test_chamber_of_deputies_dataset.py
index <HASH>..<HASH> 100644
--- a/tests/test_chamber_of_deputies_dataset.py
+++ b/tests/test_chamber_of_deputies_dataset.py
@@ -1,4 +1,5 @@
import os
+import glob
from datetime import date
from tempfile import gettempd... | Remove previous integration test files Removing all previous integration test byproduct files before the execution of a new one. This is part of an effort to make all unit tests of CEAPDataset that depend on a specific order into a single integration test. | py |
diff --git a/registration/admin.py b/registration/admin.py
index <HASH>..<HASH> 100644
--- a/registration/admin.py
+++ b/registration/admin.py
@@ -1,5 +1,6 @@
from django.contrib import admin
-from django.contrib.sites.models import RequestSite, Site
+from django.contrib.sites.models import Site
+from django.contrib.s... | RequestSite was moved (compatible with Django <I>) This code is compatible from Django <I> See <URL> | py |
diff --git a/kafka_utils/kafka_cluster_manager/cmds/command.py b/kafka_utils/kafka_cluster_manager/cmds/command.py
index <HASH>..<HASH> 100644
--- a/kafka_utils/kafka_cluster_manager/cmds/command.py
+++ b/kafka_utils/kafka_cluster_manager/cmds/command.py
@@ -195,6 +195,10 @@ class ClusterManagerCmd(object):
... | Skip plan reduction when no reduction is necessary | py |
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/saltapi/netapi/rest_cherrypy/app.py
+++ b/saltapi/netapi/rest_cherrypy/app.py
@@ -553,13 +553,9 @@ class LowDataAdapter(object):
predicate=inspect.ismethod) if not name.startswith('__')]... | Remove output formats from the root URL This will vary from endpoint to endpoint so this isn't useful here. It should be added as a custom header for each endpoint. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -71,7 +71,6 @@ tests_require = [
'pytest-xdist==1.18.2',
'pytest-pythonpath==0.7.1',
'pytest-sugar==0.8',
- 'pytest-assume',
'pytest-cov',
'pytest-flake8==0.9',
'requests', | Remove test dependency on pytest-assume This was added in #<I> by @ashwoods. Unless I am mistaken, this module is not used by raven tests and do not modify its behavior either. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ SOURCE_DIR = os.path.join(ROOT_DIR)
test_requirements = []
setup(
name="docker-py",
- version='0.0.3',
+ version='0.0.4',
description="Python client for Docker.",
packages=['docker'],
i... | Bumped version to <I> | py |
diff --git a/redcap/rc.py b/redcap/rc.py
index <HASH>..<HASH> 100644
--- a/redcap/rc.py
+++ b/redcap/rc.py
@@ -90,9 +90,8 @@ class RCRequest(object):
def execute(self):
"""Execute the API request and return data
- Returns:
- response: str
- HTTP reponse code from API
+ ... | Cleaned up some RCRequest doc | py |
diff --git a/distutils/command/install.py b/distutils/command/install.py
index <HASH>..<HASH> 100644
--- a/distutils/command/install.py
+++ b/distutils/command/install.py
@@ -191,7 +191,7 @@ class install(Command):
negative_opt = {'no-compile' : 'compile'}
# Allow Fedora to add components to the prefix
- ... | Load _prefix_addition attribute directly from sysconfig | py |
diff --git a/gpiozero/spi_devices.py b/gpiozero/spi_devices.py
index <HASH>..<HASH> 100644
--- a/gpiozero/spi_devices.py
+++ b/gpiozero/spi_devices.py
@@ -119,8 +119,10 @@ class AnalogInputDevice(SPIDevice):
self._bits = bits
self._min_value = -(2 ** bits)
self._range = 2 ** (bits + 1) - 1
+ ... | Add max_voltage property, ensure it is positive and cast to a float | py |
diff --git a/requests_oauthlib/oauth2_session.py b/requests_oauthlib/oauth2_session.py
index <HASH>..<HASH> 100644
--- a/requests_oauthlib/oauth2_session.py
+++ b/requests_oauthlib/oauth2_session.py
@@ -180,6 +180,8 @@ class OAuth2Session(requests.Session):
token = self.refresh_token(self.auto_refr... | After a token has been refreshed, retry adding token to url, headers, data | py |
diff --git a/salt/runners/test.py b/salt/runners/test.py
index <HASH>..<HASH> 100644
--- a/salt/runners/test.py
+++ b/salt/runners/test.py
@@ -6,7 +6,7 @@ from __future__ import absolute_import
# Import python libs
import time
import salt.utils.six as six
-from six.moves import range
+from salt.utils.six.moves impor... | Replaced module six in file /salt/runners/test.py | py |
diff --git a/pycbc/inference/sampler/cpnest.py b/pycbc/inference/sampler/cpnest.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/sampler/cpnest.py
+++ b/pycbc/inference/sampler/cpnest.py
@@ -209,6 +209,15 @@ class CPnestModel(cpm.Model):
bounds.update(dist.bounds)
self.bounds = [bounds[params]... | Bug fixed: Added new_point function to CPNest model class wrapper (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-db-logger',
- version='0.1.2',
+ version='0.1.5',
packages=['django_db_logger'],
include_p... | new version for python <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+from io import open
import os
import sys
@@ -17,7 +18,7 @@ if sys.argv[-1] == 'publish':
def open_file(filename):
"""Open and read the file *filename*... | Uses io.open() in setup.py. Fixes #<I>. | py |
diff --git a/baselines/common/atari_wrappers.py b/baselines/common/atari_wrappers.py
index <HASH>..<HASH> 100644
--- a/baselines/common/atari_wrappers.py
+++ b/baselines/common/atari_wrappers.py
@@ -254,6 +254,13 @@ class LazyFrames(object):
return len(self._force())
def __getitem__(self, i):
+ r... | Fix converting list of LazyFrames to ndarray (#<I>) | py |
diff --git a/zipline/__main__.py b/zipline/__main__.py
index <HASH>..<HASH> 100644
--- a/zipline/__main__.py
+++ b/zipline/__main__.py
@@ -342,7 +342,7 @@ def ingest(bundle, assets_version, show_progress):
type=int,
metavar='N',
help='Clear all but the last N downloads.'
- ' This may not be passed wit... | DOC: Fix typo in -k/--keep-last option description | py |
diff --git a/plotting/datacursor.py b/plotting/datacursor.py
index <HASH>..<HASH> 100644
--- a/plotting/datacursor.py
+++ b/plotting/datacursor.py
@@ -83,3 +83,36 @@ class DataCursor(object):
annotation.set_text(self.template % (x, y))
annotation.set_visible(True)
event.canvas.dra... | added demo to datacursor class file | py |
diff --git a/dedupe/core.py b/dedupe/core.py
index <HASH>..<HASH> 100644
--- a/dedupe/core.py
+++ b/dedupe/core.py
@@ -158,7 +158,6 @@ class ScoreDupes(object):
fp: numpy.memmap
fp = numpy.memmap(self.score_file_path,
- mode='r+',
... | don't set an extraneous flag | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ required_packages = ['graphql-core>=0.4.9', 'flask>=0.7.0']
setup(
name='graphql-flask',
- version='1.0.0',
+ version='1.1.0',
description='Adds GraphQL support to your Flask application',
... | Updated version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -162,6 +162,8 @@ setup(
license='BSD',
description='Python library for interacting with JIRA via REST APIs.',
long_description=open("README.rst").read(),
+ maintainer='Sorin Sbarnea',
+ maintainer_email='s... | Fill in the current maintainer information. | py |
diff --git a/msrestazure/azure_active_directory.py b/msrestazure/azure_active_directory.py
index <HASH>..<HASH> 100644
--- a/msrestazure/azure_active_directory.py
+++ b/msrestazure/azure_active_directory.py
@@ -130,13 +130,13 @@ class AADMixin(OAuthTokenAuthentication):
"please use "
... | Save cloudenv as self.cloud_environment | py |
diff --git a/src/instruments/spectrum_analyzer.py b/src/instruments/spectrum_analyzer.py
index <HASH>..<HASH> 100644
--- a/src/instruments/spectrum_analyzer.py
+++ b/src/instruments/spectrum_analyzer.py
@@ -11,11 +11,23 @@ class SpectrumAnalyzer(Instrument):
# String returned by spectrum analyzer upon querying it ... | AS: Added some google-style comments to the Spectrum Analyzer code written so far. | py |
diff --git a/test/task_test.py b/test/task_test.py
index <HASH>..<HASH> 100644
--- a/test/task_test.py
+++ b/test/task_test.py
@@ -26,7 +26,7 @@ tempfile.tempdir = os.environ.get(GLUISH_DATA, tempfile.gettempdir())
class TestTask(BaseTask):
""" A base class for test tasks. """
BASE = os.environ.get(GLUISH_DA... | use a more obscure TAG for the test tasks | py |
diff --git a/salt/cloud/clouds/libvirt.py b/salt/cloud/clouds/libvirt.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/libvirt.py
+++ b/salt/cloud/clouds/libvirt.py
@@ -606,6 +606,9 @@ def find_pool_and_volume(conn, path):
def generate_new_name(orig_name):
+ if not '.' in orig_name:
+ return '{0}-{... | Fixed crash when lacking file ext Some tools, like Packer, don't include the 'qcow2' file extension when generating disk images. When the libvirt cloud module was given a disk image with no extension, the function would raise . This PR fixes the assumption that disk images have file extensions in their names. | py |
diff --git a/salt/beacons/diskusage.py b/salt/beacons/diskusage.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/diskusage.py
+++ b/salt/beacons/diskusage.py
@@ -62,7 +62,8 @@ def beacon(config):
- /mnt/nfs: 50%
'''
ret = []
- for mount in config:
+ for mounts in config:
+ mount = m... | Fix diskusage beacon Stop trying to load the entire mount dict as the mount point. | py |
diff --git a/asyncio_xmpp/callbacks.py b/asyncio_xmpp/callbacks.py
index <HASH>..<HASH> 100644
--- a/asyncio_xmpp/callbacks.py
+++ b/asyncio_xmpp/callbacks.py
@@ -33,6 +33,9 @@ class CallbacksWithToken:
def remove_callback(self, token):
self._callbacks[token.key].pop(token)
+ def remove_callback_fn(s... | Allow to remove callbacks without token if they match exactly | py |
diff --git a/bika/lims/setuphandlers.py b/bika/lims/setuphandlers.py
index <HASH>..<HASH> 100644
--- a/bika/lims/setuphandlers.py
+++ b/bika/lims/setuphandlers.py
@@ -189,7 +189,7 @@ class BikaGenerator:
mp(ApplyVersionControl, ['Manager', 'LabManager', 'LabClerk', 'Analyst', 'Owner', 'RegulatoryInspector'],... | Added RegulatoryInsepctors group and role | py |
diff --git a/parler/models.py b/parler/models.py
index <HASH>..<HASH> 100644
--- a/parler/models.py
+++ b/parler/models.py
@@ -476,15 +476,19 @@ class TranslatableModel(models.Model):
if not self._state.adding or self.pk is not None:
_cache_translation_needs_fallback(self, language_code, r... | Fix using second fallback if _get_translated_model() was fetching the first | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -366,6 +366,7 @@ class PowerLogParser:
sre = CHOICES_CHOICE_RE.match(data)
if sre:
entity, playerID, type, min, max = sre.groups()
+ type = parse_enum(enums.ChoiceType, type)
node = ChoicesNode(ts, entity, playerID... | Parse choice types into ChoiceType enum | py |
diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/qemu/qemu_vm.py
+++ b/gns3server/compute/qemu/qemu_vm.py
@@ -1847,6 +1847,8 @@ class QemuVM(BaseNode):
disk = os.path.join(self.working_dir, "hd{}_disk.qcow2".fo... | Fix problem with VM saved stated. | py |
diff --git a/will/mixins/schedule.py b/will/mixins/schedule.py
index <HASH>..<HASH> 100644
--- a/will/mixins/schedule.py
+++ b/will/mixins/schedule.py
@@ -135,7 +135,7 @@ class ScheduleMixin(object):
# and that seems more useful.
possible_times = []
for i in range(start_hour, end_... | No need to include 0 as the range start value | py |
diff --git a/panphon/permissive.py b/panphon/permissive.py
index <HASH>..<HASH> 100644
--- a/panphon/permissive.py
+++ b/panphon/permissive.py
@@ -87,7 +87,7 @@ class PermissiveFeatureTable(_panphon.FeatureTable):
return False
def longest_one_seg_prefix(self, word):
- match = self.seg_regex(w... | Added methods to permissive.py | py |
diff --git a/bottle_i18n.py b/bottle_i18n.py
index <HASH>..<HASH> 100644
--- a/bottle_i18n.py
+++ b/bottle_i18n.py
@@ -1,4 +1,4 @@
-import gettext, os, re, functools
+import gettext, os, re, functools, sys
from bottle import PluginError, request, template, DictMixin, TEMPLATE_PATH
@@ -163,8 +163,11 @@ class I18NPl... | bytestring conversion is only required for python <= 3 | py |
diff --git a/openquake/hazardlib/tests/source/rupture_test.py b/openquake/hazardlib/tests/source/rupture_test.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/tests/source/rupture_test.py
+++ b/openquake/hazardlib/tests/source/rupture_test.py
@@ -161,7 +161,7 @@ class NonParametricProbabilisticRuptureTestCase(u... | replaced assert_array_equal with assert_allclose | py |
diff --git a/tests/test_find_enrichment_overlap.py b/tests/test_find_enrichment_overlap.py
index <HASH>..<HASH> 100755
--- a/tests/test_find_enrichment_overlap.py
+++ b/tests/test_find_enrichment_overlap.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python
-"""ArgsDflt minimum overlap."""
+"""fraction of genes/proteins in study a... | minor docstr and copyright date change | py |
diff --git a/oplogreplay/oplogreplayer.py b/oplogreplay/oplogreplayer.py
index <HASH>..<HASH> 100644
--- a/oplogreplay/oplogreplayer.py
+++ b/oplogreplay/oplogreplayer.py
@@ -188,3 +188,18 @@ class OplogReplayer(OplogWatcher):
dbname = raw['ns'].split('.', 1)[0]
collname = raw['o']['dropIndexes']
... | implement "command" oplog operation | py |
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index <HASH>..<HASH> 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -245,24 +245,24 @@ class _Unstacker:
new_mask = np.ones(result_shape, dtype=bool)
return new_values, new_mask
... | REF: dont call maybe_promote with EA dtype (#<I>) | py |
diff --git a/drivers/sdcard/sdcard.py b/drivers/sdcard/sdcard.py
index <HASH>..<HASH> 100644
--- a/drivers/sdcard/sdcard.py
+++ b/drivers/sdcard/sdcard.py
@@ -274,6 +274,5 @@ class SDCard:
self.write_token(_TOKEN_STOP_TRAN)
def ioctl(self, op, arg):
- print('ioctl', op, arg)
if op ==... | drivers/sdcard: Remove debugging print statement in ioctl method. | py |
diff --git a/pyfolio/utils.py b/pyfolio/utils.py
index <HASH>..<HASH> 100644
--- a/pyfolio/utils.py
+++ b/pyfolio/utils.py
@@ -15,6 +15,7 @@
from __future__ import division
from datetime import datetime
+import errno
from os import mkdir, environ
from os.path import expanduser, join, getmtime
import warnings
@@ ... | MAINT: legacy python support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
'selene.support',
'selene.support.conditions'],
include_package_data=True,
- install_requires=['selenium==2.53.1', 'webdriver_manager', 'future', 'backports.functools... | six lib added to setup.py | py |
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py
index <HASH>..<HASH> 100644
--- a/gtdoit/logbook.py
+++ b/gtdoit/logbook.py
@@ -534,6 +534,10 @@ class RotatedEventStore(EventStore):
"""Checks whether the key exists in the current event store."""
return self.estore.key_exists(key)
+ def close(s... | Bugfix: `RotatedEventStore` can now be closed This lead to MD5:s not being persisted for the last opened file by a `RotatedEventStore`. All tests are now back on track. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.