diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pypot/creatures/abstractcreature.py b/pypot/creatures/abstractcreature.py
index <HASH>..<HASH> 100644
--- a/pypot/creatures/abstractcreature.py
+++ b/pypot/creatures/abstractcreature.py
@@ -87,7 +87,7 @@ class AbstractPoppyCreature(Robot):
(not os.path.exists(os.path.join(s... | Fix scene path import error due to wrong indentation | py |
diff --git a/tests/test_backends.py b/tests/test_backends.py
index <HASH>..<HASH> 100644
--- a/tests/test_backends.py
+++ b/tests/test_backends.py
@@ -92,7 +92,7 @@ class TestBackends(unittest.TestCase):
items_pack = []
- for item in items:
+ for item in items.fetch():
item = sel... | [tests] Fix test to extract items from ocean using the generator instead the iterator | py |
diff --git a/saunter/ConfigWrapper.py b/saunter/ConfigWrapper.py
index <HASH>..<HASH> 100644
--- a/saunter/ConfigWrapper.py
+++ b/saunter/ConfigWrapper.py
@@ -19,6 +19,7 @@ ConfigWrapper
import ConfigParser
import os
import os.path
+import sys
class ConfigWrapper(object):
"""
@@ -31,9 +32,13 @@ class ConfigW... | actually behave nice when the config file is missing | py |
diff --git a/shell/log.py b/shell/log.py
index <HASH>..<HASH> 100644
--- a/shell/log.py
+++ b/shell/log.py
@@ -1,10 +1,21 @@
# -*- coding: utf-8 -*-
+
+from shell.utils import _print
import logging
-logger = logging.getLogger('Evolux Console')
-hdlr = logging.FileHandler('newshell.log')
+
+class ConsoleLogHandler... | Making logger write messages to the console instead of file, reducing level to INFO | py |
diff --git a/skitai/server/http_server.py b/skitai/server/http_server.py
index <HASH>..<HASH> 100644
--- a/skitai/server/http_server.py
+++ b/skitai/server/http_server.py
@@ -345,12 +345,13 @@ class http_server (asyncore.dispatcher):
ACTIVE_WORKERS += 1
signal.signal(signal.SIGHUP, hHUPMASTER)
s... | handle KeyboardInterrupt on posix | py |
diff --git a/pyani/pyani_graphics.py b/pyani/pyani_graphics.py
index <HASH>..<HASH> 100644
--- a/pyani/pyani_graphics.py
+++ b/pyani/pyani_graphics.py
@@ -233,23 +233,23 @@ def add_mpl_colorbar(dfr, fig, dend, params, orientation='row'):
cblist.append(classdict[params.classes[name]])
except KeyErr... | make minor code clean for pylint | py |
diff --git a/daapserver/revision.py b/daapserver/revision.py
index <HASH>..<HASH> 100644
--- a/daapserver/revision.py
+++ b/daapserver/revision.py
@@ -42,6 +42,7 @@ class TreeRevisionStorage(object):
for set operations, since two sequential edits don't increment.
"""
self.last_operation = con... | Commit now raises revision. Fix for iTunes <I> | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -19,6 +19,13 @@ if not settings.configured:
'NAME': ':memory:'
}
},
+ CACHES = {
+ # By explicit since many tests also need the caching support
+ ... | runtests: add CACHES setting | py |
diff --git a/master/buildbot/worker/latent.py b/master/buildbot/worker/latent.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/latent.py
+++ b/master/buildbot/worker/latent.py
@@ -312,7 +312,7 @@ class AbstractLatentWorker(AbstractWorker):
return
if self.state == self.STATE_INSUBSTANT... | latent: Wait for ongoing insubstantiation to complete on duplicate call | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -59,7 +59,7 @@ html_favicon = "./images/logo-geco.ico"
# General information about the project.
project = 'PyGMQL'
copyright = '2017, Luca Nanni'
-author = 'Luca Nanni'
+author = 'Luc... | added other authors to the docs | py |
diff --git a/python/test_gumath.py b/python/test_gumath.py
index <HASH>..<HASH> 100644
--- a/python/test_gumath.py
+++ b/python/test_gumath.py
@@ -59,8 +59,6 @@ class TestCall(unittest.TestCase):
end = time.time()
sys.stderr.write("\ngumath: time=%s\n" % (end-start))
- continue
-
... | Re-enable numpy tests. | py |
diff --git a/hybridLFPy/population.py b/hybridLFPy/population.py
index <HASH>..<HASH> 100644
--- a/hybridLFPy/population.py
+++ b/hybridLFPy/population.py
@@ -1305,8 +1305,6 @@ class Population(PopulationSuper):
synParams = synParams,
idx = self.synIdx[c... | removed SpTimes arg to insert_synapses function call | py |
diff --git a/ella/core/box.py b/ella/core/box.py
index <HASH>..<HASH> 100644
--- a/ella/core/box.py
+++ b/ella/core/box.py
@@ -1,4 +1,4 @@
-from django.template import loader, Context
+from django.template import loader
from django.utils.datastructures import MultiValueDict
BOX_INFO = 'ella.core.box.BOX_INFO'
@@ -8... | Minor change to boxes to allow access to full context from within a box. git-svn-id: <URL> | py |
diff --git a/vyper/exceptions.py b/vyper/exceptions.py
index <HASH>..<HASH> 100644
--- a/vyper/exceptions.py
+++ b/vyper/exceptions.py
@@ -88,13 +88,17 @@ class VyperException(Exception):
msg = f"{self.message}\n"
for node in self.nodes:
- source_annotation = annotate_source_code(
- ... | fix: handle source that cannot be annotated during exceptions | py |
diff --git a/nap/url.py b/nap/url.py
index <HASH>..<HASH> 100644
--- a/nap/url.py
+++ b/nap/url.py
@@ -138,11 +138,17 @@ class Url(object):
def _remove_leading_slash(self, text):
return text[1:] if text.startswith('/') else text
+
+ def _ensure_trailing_slash(self, text):
+ return text if ... | Fix URL joining with Python <I> Possibly something's changed with `urllib.parse`, but definitely the URL joining tests where the baseurl does _not_ end in a slash were failing on my Ubuntu <I> Python <I>. That is to say, that version works like this: ```py urljoin("<URL>) == "<URL> == "<URL> == "<URL> == "<URL> | py |
diff --git a/bitshares/market.py b/bitshares/market.py
index <HASH>..<HASH> 100644
--- a/bitshares/market.py
+++ b/bitshares/market.py
@@ -77,6 +77,9 @@ class Market(dict):
return (
self["quote"]["symbol"] == quote_symbol and
self["base"]["symbol"] == base_symbol
+ ... | [market] Allow to compare market string with market using overloaded operation | py |
diff --git a/vagrant/__init__.py b/vagrant/__init__.py
index <HASH>..<HASH> 100644
--- a/vagrant/__init__.py
+++ b/vagrant/__init__.py
@@ -803,7 +803,7 @@ class Vagrant(object):
# target is the VM name
# type is the type of data, e.g. 'provider-name', 'box-version'
# data is a (possibly comma... | Increases max splits in machine-readable output parsing Previously was limited to 3, now bumping to 4 to accommodate for the extra fields in the "metadata" and "ui" lines introduced in Vagrant <I>. Currently the fields are filtered out, pending future implementation. | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -537,7 +537,10 @@ class Remote(LazyMixin, Iterable):
fetch_head_info = fp.readlines()
fp.close()
- assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s... | HACK: Removed assertion just to be a bit less annoyed by constant fail | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ from setuptools import setup, find_packages
setup(
name='quite',
- version='0.0.2',
+ version='0.0.3',
description='QT UI Extension',
url='https://github.com/sf-zhou/quite',
@@ -33,10 +... | fixed previous error: regard execution as package data | py |
diff --git a/src/analysis/galaxy_prior.py b/src/analysis/galaxy_prior.py
index <HASH>..<HASH> 100644
--- a/src/analysis/galaxy_prior.py
+++ b/src/analysis/galaxy_prior.py
@@ -125,6 +125,11 @@ class GalaxyPrior(model_mapper.AbstractPriorModel):
def priors(self):
return [prior for prior_model in self.prior_... | prior class dict property of galaxy prior | py |
diff --git a/tilequeue/query/fixture.py b/tilequeue/query/fixture.py
index <HASH>..<HASH> 100644
--- a/tilequeue/query/fixture.py
+++ b/tilequeue/query/fixture.py
@@ -124,6 +124,17 @@ class DataFetcher(object):
if zoom < 16 and (zoom + 1) <= min_zoom:
continue
+ # ... | Add hack to match 'max zoom' functionality of the NE places SQL query. | py |
diff --git a/animal/models.py b/animal/models.py
index <HASH>..<HASH> 100644
--- a/animal/models.py
+++ b/animal/models.py
@@ -95,7 +95,7 @@ If a eartag is present then the string reads some_strain-Eartag #some_number. If
self.Alive = False
super(Animal, self).save()
class Meta:
- orde... | Modified animal/models.py to order animals first by strain then by MouseID | py |
diff --git a/block_if.py b/block_if.py
index <HASH>..<HASH> 100644
--- a/block_if.py
+++ b/block_if.py
@@ -11,7 +11,7 @@ from .constants import (
class BlockIf:
RE_IF = re.compile(
- '^\s*#(if|elif)\s+@([{VAR_DOTS}]+)(\s*\(\s*(@[{VAR_DOTS}]+\s*(,\s*' +
+ '^\s*#(if|elif)\s+@([{VAR_DOTS}]+)(\s*\(\s*... | Fixed wrong breank in block if | py |
diff --git a/sphinx_nbexamples/__init__.py b/sphinx_nbexamples/__init__.py
index <HASH>..<HASH> 100644
--- a/sphinx_nbexamples/__init__.py
+++ b/sphinx_nbexamples/__init__.py
@@ -380,7 +380,8 @@ logging.getLogger('py.warnings').setLevel(logging.ERROR)
def create_rst(self, nb, in_dir, odir):
"""Create th... | replaced export_by_name since it has been removed in <URL> | py |
diff --git a/simpleyapsy/plugin_manager.py b/simpleyapsy/plugin_manager.py
index <HASH>..<HASH> 100644
--- a/simpleyapsy/plugin_manager.py
+++ b/simpleyapsy/plugin_manager.py
@@ -25,11 +25,3 @@ class PluginManager(object):
for plugin in plugins:
if plugin not in self.blacklisted_plugins:
... | Removed active and deactive methods from plugin manager | py |
diff --git a/uptick/wallet.py b/uptick/wallet.py
index <HASH>..<HASH> 100644
--- a/uptick/wallet.py
+++ b/uptick/wallet.py
@@ -64,14 +64,15 @@ def addkey(ctx, key):
installedKeys = ctx.bitshares.wallet.getPublicKeys()
if len(installedKeys) == 1:
name = ctx.bitshares.wallet.getAccountFromPublicKey(ins... | [addkey] do not set a default_account if no name can be found to the key | py |
diff --git a/bingo/views.py b/bingo/views.py
index <HASH>..<HASH> 100644
--- a/bingo/views.py
+++ b/bingo/views.py
@@ -258,13 +258,14 @@ def thumbnail(request, board_id, marked=False, voted=False):
game__site=get_current_site(request))
# check if the board is from an expired game
- game_expired_cache... | fix: use board.id instead of board.board_id for caching "game_expired" board.board_id is not unique across different sites, so bingo_board.id is used. | py |
diff --git a/holoviews/core/options.py b/holoviews/core/options.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/options.py
+++ b/holoviews/core/options.py
@@ -35,6 +35,7 @@ Store:
import param
from .tree import AttrTree
+from .util import valid_identifier
class OptionError(Exception):
@@ -247,6 +248,26 @@ ... | Added support for multi-level OptionTree setattr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,11 @@ Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.4
Topic :: Software Development :: Testing
-Development Status :: 3 - Alpha
+Development Status :: ... | Updated the version number to <I> | py |
diff --git a/dimod/sampleset.py b/dimod/sampleset.py
index <HASH>..<HASH> 100644
--- a/dimod/sampleset.py
+++ b/dimod/sampleset.py
@@ -14,6 +14,7 @@
#
# ================================================================================================
import itertools
+import numbers
try:
import collections.ab... | Speed up single sample list case for as_samples | py |
diff --git a/bakery/tests/__init__.py b/bakery/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/bakery/tests/__init__.py
+++ b/bakery/tests/__init__.py
@@ -287,8 +287,8 @@ class BakeryTest(TestCase):
# Some save overrides tests
obj = AutoMockObject.objects.all()[0]
obj.save(publish=False)
... | try again with the task run in the tests for #<I> | py |
diff --git a/wsgiservice/application.py b/wsgiservice/application.py
index <HASH>..<HASH> 100644
--- a/wsgiservice/application.py
+++ b/wsgiservice/application.py
@@ -36,7 +36,7 @@ class Application(object):
_resources = None
#: :class:`wsgiservice.routing.Router` instance. Set by the constructor.
- _res... | application.py: Fix initialization of the _urlmap string. | py |
diff --git a/pyoko/db/queryset.py b/pyoko/db/queryset.py
index <HASH>..<HASH> 100644
--- a/pyoko/db/queryset.py
+++ b/pyoko/db/queryset.py
@@ -236,6 +236,7 @@ class QuerySet(object):
obj = self.bucket.get(model.key)
obj.data = clean_value
obj.store()
+ model.just_created = ... | added just_created property rref #<I> ref GH-<I> | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
-__version__ =... | Update Pyrogram to <I> | py |
diff --git a/openquake/baselib/zeromq.py b/openquake/baselib/zeromq.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/zeromq.py
+++ b/openquake/baselib/zeromq.py
@@ -1,3 +1,4 @@
+import os
import zmq
context = zmq.Context()
@@ -19,7 +20,11 @@ class ReplySocket(object):
self.zsocket.bind(self.end_point... | Managed SIGINT, SIGTER | py |
diff --git a/src/satosa/routing.py b/src/satosa/routing.py
index <HASH>..<HASH> 100644
--- a/src/satosa/routing.py
+++ b/src/satosa/routing.py
@@ -47,7 +47,7 @@ class ModuleRouter(object):
if not frontends and not backends:
raise ValueError("Need at least one frontend and one backend")
- ... | Correct interface of FrontendModule.register_endpoints. Python 3 dict_keys is not indexable, so ensure a list is passed to avoid an exception. | py |
diff --git a/GPy/testing/misc_tests.py b/GPy/testing/misc_tests.py
index <HASH>..<HASH> 100644
--- a/GPy/testing/misc_tests.py
+++ b/GPy/testing/misc_tests.py
@@ -1,6 +1,7 @@
import numpy as np
import scipy as sp
import GPy
+import warnings
class MiscTests(np.testing.TestCase):
"""
@@ -11,8 +12,12 @@ class M... | caught warnings in misc_tests | py |
diff --git a/squad/run/worker.py b/squad/run/worker.py
index <HASH>..<HASH> 100644
--- a/squad/run/worker.py
+++ b/squad/run/worker.py
@@ -1,15 +1,17 @@
+from squad.settings import CELERY_TASK_ROUTES
import os
import sys
def main():
+ queues = set([conf['queue'] for _, conf in CELERY_TASK_ROUTES.items()])
... | squad.run.worker: listen on all configured queues by default This way one does not need to explicitly pass the queue names in the command line | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,15 +19,15 @@ except Exception as e:
tests_require = [
'coverage==4.2',
- 'flake8==2.5.4',
+ 'flake8==3.2.0',
'hypothesis==3.6.0',
'hypothesis-pytest==0.19.0',
'py==1.4.31',
- 'pydocstyle==1.... | upgrade to latest flake8, pydocstyle, pytest-cov, and sphinx dependencies | py |
diff --git a/PySimpleGUIWeb/PySimpleGUIWeb.py b/PySimpleGUIWeb/PySimpleGUIWeb.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUIWeb/PySimpleGUIWeb.py
+++ b/PySimpleGUIWeb/PySimpleGUIWeb.py
@@ -1305,6 +1305,7 @@ class Output(Element):
def Update(self, value=None, disabled=None, append=False, background_color=None, te... | Fixed clearing of Output Element using Update method. Wasn't setting "CurrentValue" variable, only the widget | py |
diff --git a/examples/window/pyglet/window.py b/examples/window/pyglet/window.py
index <HASH>..<HASH> 100644
--- a/examples/window/pyglet/window.py
+++ b/examples/window/pyglet/window.py
@@ -41,6 +41,13 @@ class Window(BaseWindow):
config.sample_buffers = 1 if self.samples > 1 else 0
config.samples =... | Pyglet window: Use the current desktop resolution in fullscreen mode This will make the pyglet window a lot more pleasant to work with in fullscreen. On modern monitors using HDMI the resolution change can drive you crazy over time. | py |
diff --git a/ansi2html/converter.py b/ansi2html/converter.py
index <HASH>..<HASH> 100755
--- a/ansi2html/converter.py
+++ b/ansi2html/converter.py
@@ -128,7 +128,8 @@ class _State(object):
css_class = 'ansi%d' % value
output.append(css_class)
- def append_color_unless_default(... | Tweak for py3 support. | py |
diff --git a/proso_models/models.py b/proso_models/models.py
index <HASH>..<HASH> 100644
--- a/proso_models/models.py
+++ b/proso_models/models.py
@@ -519,6 +519,7 @@ class ItemManager(models.Manager):
dict: identifier -> item id
"""
result = {}
+ identifiers = set(identifiers)
... | drop duplicated identifiers issues: #<I> | py |
diff --git a/src/hamster/overview.py b/src/hamster/overview.py
index <HASH>..<HASH> 100755
--- a/src/hamster/overview.py
+++ b/src/hamster/overview.py
@@ -225,13 +225,15 @@ class HorizontalBarChart(graphics.Sprite):
self.layout.set_markup(markup)
label_w, label_h = self.layout.get_pixel_size()... | reduce bar size => more space for labels | py |
diff --git a/dharma/core/dharma.py b/dharma/core/dharma.py
index <HASH>..<HASH> 100644
--- a/dharma/core/dharma.py
+++ b/dharma/core/dharma.py
@@ -22,7 +22,7 @@ class GenState:
class String:
- """Generator class basic strings which need no further evaluation."""
+ """Generator class for basic strings which n... | Update dharma.py small typo | py |
diff --git a/src/python/setup.py b/src/python/setup.py
index <HASH>..<HASH> 100644
--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -22,7 +22,12 @@ setup(
platforms=['any'],
# Our modules to package
- packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),
+ packages=find_packa... | - Setup now has future as a dependent module | py |
diff --git a/dallinger/docker/tools.py b/dallinger/docker/tools.py
index <HASH>..<HASH> 100644
--- a/dallinger/docker/tools.py
+++ b/dallinger/docker/tools.py
@@ -113,7 +113,7 @@ class DockerComposeWrapper(object):
def start(self):
self.copy_docker_compse_files()
env = {"DOCKER_BUILDKIT": "1"}
- ... | Use plain progress indicator when building experiment docker images | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -180,7 +180,6 @@ requires = [
"packaging",
"pytest",
"pyyaml",
- "jsonschema",
"redis>=3.3.2",
# NOTE: Don't upgrade the version of six! Doing so causes installation
... | Remove duplicate jsonschema from setup.py (#<I>) | py |
diff --git a/simple_history/tests/tests.py b/simple_history/tests/tests.py
index <HASH>..<HASH> 100644
--- a/simple_history/tests/tests.py
+++ b/simple_history/tests/tests.py
@@ -330,6 +330,8 @@ class AdminSiteTest(WebTest):
return form.submit()
def test_history_list(self):
+ if VERSION >= (1, 5)... | Ensure custom user model is used if supported | py |
diff --git a/pyemma/thermo/api.py b/pyemma/thermo/api.py
index <HASH>..<HASH> 100644
--- a/pyemma/thermo/api.py
+++ b/pyemma/thermo/api.py
@@ -328,7 +328,7 @@ def tram(
assert len(ttraj) == len(dtraj)
assert len(ttraj) == btraj.shape[0]
# check lag time(s)
- lags = _np.asarray(lag, dtype=_np.i... | [THERMO] bugfix in dtram() + tram() API functions | py |
diff --git a/pyphi/models/fmt.py b/pyphi/models/fmt.py
index <HASH>..<HASH> 100644
--- a/pyphi/models/fmt.py
+++ b/pyphi/models/fmt.py
@@ -303,8 +303,8 @@ def fmt_concept(concept):
return ''
return box(indent(fmt_mip(x.mip, verbose=False), amount=1))
- cause = header('Cause', fmt_cause_or_eff... | Print MIC and MIE with full names Update the header of the MICE objects to read “Maximally-irreducible cause” and “Maximally-irreducible effect” instead of “Cause” and “Effect”. | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -1503,9 +1503,11 @@ def id_():
_REPLACE_LINUX_RE = re.compile(r"\W(?:gnu/)?linux", re.IGNORECASE)
# This maps (at most) the first ten characters (no spaces, lowercased) of
-# 'os... | Remove comment referencing _supported_dists from salt/grains/core.py As this has been removed in favor of `distro.linux_distribution()`, the comment is no longer accurate. | py |
diff --git a/pyciss/pipeline.py b/pyciss/pipeline.py
index <HASH>..<HASH> 100644
--- a/pyciss/pipeline.py
+++ b/pyciss/pipeline.py
@@ -1,21 +1,26 @@
+""" Note that the calibration starts from the LBL files, not the IMG !!! """
from __future__ import division, print_function
-from pysis.isis import ciss2isis, cisscal, ... | clean up imports.cast img_name to string. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ install_requires = [
test_requires = install_requires
setup(name='dictalchemy',
- version='0.1a4',
+ version='0.1b1',
description="Contains asdict and fromdict methods for SQL-Alchemy "
... | Changed status to beta, added classifiers | py |
diff --git a/analyzers/LastInfoSec/LastInfoSec.py b/analyzers/LastInfoSec/LastInfoSec.py
index <HASH>..<HASH> 100755
--- a/analyzers/LastInfoSec/LastInfoSec.py
+++ b/analyzers/LastInfoSec/LastInfoSec.py
@@ -4,7 +4,7 @@ from cortexutils.analyzer import Analyzer
import requests
-class LIS_GetReport(Analyzer):
+class... | rename Lis_GetReport to LastInfoSec | py |
diff --git a/hearthstone/hslog/parser.py b/hearthstone/hslog/parser.py
index <HASH>..<HASH> 100644
--- a/hearthstone/hslog/parser.py
+++ b/hearthstone/hslog/parser.py
@@ -212,6 +212,7 @@ class LogWatcher(LogBroadcastMixin):
def action_start(self, ts, entity, type, index, target):
entity = self.parse_entity(entity)... | hslog: Parse the action target as an entity | py |
diff --git a/spyder/widgets/sourcecode/base.py b/spyder/widgets/sourcecode/base.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/sourcecode/base.py
+++ b/spyder/widgets/sourcecode/base.py
@@ -319,15 +319,6 @@ class TextEditBaseWidget(QPlainTextEdit, BaseEditMixin):
#------Extra selections
- def extra_... | Remove not longer used TextEditBaseWidget.extra_selection_length method. (this logic was moved to DecorationManager._order_decorations) | py |
diff --git a/tests/functional/test_subunit_output.py b/tests/functional/test_subunit_output.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_subunit_output.py
+++ b/tests/functional/test_subunit_output.py
@@ -33,8 +33,6 @@ class Includes(object):
self.d = d
def __eq__(self, a):
- # for ... | Remove debugging comment that is no longer needed | py |
diff --git a/src/ai/backend/common/types.py b/src/ai/backend/common/types.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/common/types.py
+++ b/src/ai/backend/common/types.py
@@ -5,6 +5,8 @@ from typing import Hashable, Mapping, Iterable, Sequence, Set, NewType, Tuple, U
import attr
+from . import etcd
+
De... | ci, types: Avoid potential circular ref but also fix undefined name error * The types module would be referenced from other common modules in the future as expanded. * GvR in PEP-<I> suggests to use module imports to resolve such cases. ref) <URL> | py |
diff --git a/neo/SmartContract/ContractParameterContext.py b/neo/SmartContract/ContractParameterContext.py
index <HASH>..<HASH> 100755
--- a/neo/SmartContract/ContractParameterContext.py
+++ b/neo/SmartContract/ContractParameterContext.py
@@ -22,11 +22,16 @@ class ContractParamater():
Value = None
def __ini... | Bugfix for neo/SmartContract/ContractParameterContext Based on code by @localhuman | py |
diff --git a/salt/modules/dockerng.py b/salt/modules/dockerng.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockerng.py
+++ b/salt/modules/dockerng.py
@@ -5802,4 +5802,3 @@ def sls_build(name, base='fedora', mods=None, saltenv='base',
__salt__['dockerng.stop'](id_)
return __salt__['dockerng.commit']... | Quick lint of dockerng | py |
diff --git a/enoslib/service/monitoring/monitoring.py b/enoslib/service/monitoring/monitoring.py
index <HASH>..<HASH> 100644
--- a/enoslib/service/monitoring/monitoring.py
+++ b/enoslib/service/monitoring/monitoring.py
@@ -118,7 +118,7 @@ class Monitoring(Service):
volumes = [
"/telegraf... | service/monitoring: fix typo | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -5,7 +5,7 @@
# license that can be found in the LICENSE file.
import os
-from fabric.api import abort, cd, env, local, put, run
+from fabric.api import abort, cd, env, local, put, run, sudo
current_dir = os.path... | fabfile: added command do deploy hooks | py |
diff --git a/pysmi/codegen/pysnmp.py b/pysmi/codegen/pysnmp.py
index <HASH>..<HASH> 100644
--- a/pysmi/codegen/pysnmp.py
+++ b/pysmi/codegen/pysnmp.py
@@ -75,8 +75,8 @@ class PySnmpCodeGen(AbstractCodeGen):
# - or import base ASN.1 types from implementation-specific MIBs
fakeMibs = ('ASN1',
'... | fix to fake MIBs classifier | py |
diff --git a/tethne/readers/zotero.py b/tethne/readers/zotero.py
index <HASH>..<HASH> 100644
--- a/tethne/readers/zotero.py
+++ b/tethne/readers/zotero.py
@@ -386,7 +386,7 @@ class ZoteroParser(RDFParser):
self.full_text[fset_name][ident] = structuredfeature
-def read(path, corpus=True, index_by='uri',... | in Zotero reader, follow_links=False by default | py |
diff --git a/octodns/source/tinydns.py b/octodns/source/tinydns.py
index <HASH>..<HASH> 100755
--- a/octodns/source/tinydns.py
+++ b/octodns/source/tinydns.py
@@ -144,7 +144,7 @@ class TinyDnsBaseSource(BaseSource):
'3': 'AAAA',
'6': 'AAAA',
}
- name_re = re.compile(r'((?P<name... | f-string some regexes in sources | py |
diff --git a/twarc/decorators2.py b/twarc/decorators2.py
index <HASH>..<HASH> 100644
--- a/twarc/decorators2.py
+++ b/twarc/decorators2.py
@@ -202,9 +202,10 @@ class FileSizeProgressBar(tqdm):
self, result, field="id", error_resource_type=None, error_parameter="ids"
):
try:
- for item ... | fix FileSizeProgressBar when therte's no data in response | py |
diff --git a/mobly/controllers/android_device_lib/snippet_client.py b/mobly/controllers/android_device_lib/snippet_client.py
index <HASH>..<HASH> 100644
--- a/mobly/controllers/android_device_lib/snippet_client.py
+++ b/mobly/controllers/android_device_lib/snippet_client.py
@@ -96,7 +96,9 @@ class SnippetClient(jsonrpc... | Add missing protocol line patterns to start_app_and_connect() (#<I>) | py |
diff --git a/tacacs_plus/packet.py b/tacacs_plus/packet.py
index <HASH>..<HASH> 100644
--- a/tacacs_plus/packet.py
+++ b/tacacs_plus/packet.py
@@ -157,12 +157,18 @@ class TACACSHeader(object):
# B = unsigned char
# !I = network-order (big-endian) unsigned int
raw = six.BytesIO(raw)
- v... | Fix #<I>. Packet header becomes not analyzable if the client key missmatch the server's one | py |
diff --git a/instaloader/structures.py b/instaloader/structures.py
index <HASH>..<HASH> 100644
--- a/instaloader/structures.py
+++ b/instaloader/structures.py
@@ -655,6 +655,14 @@ class Profile:
return self._metadata('external_url')
@property
+ def is_business_account(self) -> bool:
+ return s... | [Issue #<I>] Add is_business_account and business_category_name properties to Profile structure | py |
diff --git a/bluetooth/bluez.py b/bluetooth/bluez.py
index <HASH>..<HASH> 100644
--- a/bluetooth/bluez.py
+++ b/bluetooth/bluez.py
@@ -1,23 +1,15 @@
+import array
+import fcntl
import sys
import struct
from errno import (EADDRINUSE, EBUSY, EINVAL)
-if sys.version_info.major < 3:
- from .btcommon import *
- i... | bluez.py: simplify imports between Python 2 & 3 | py |
diff --git a/subprocess2/__init__.py b/subprocess2/__init__.py
index <HASH>..<HASH> 100644
--- a/subprocess2/__init__.py
+++ b/subprocess2/__init__.py
@@ -156,7 +156,7 @@ def runInBackground(self, pollInterval=.1, encoding=False):
The object returned is a "BackgroundTaskInfo" object, and represents the state... | Update url to pythonhosted.org | py |
diff --git a/mockito_test/empty_mocks_test.py b/mockito_test/empty_mocks_test.py
index <HASH>..<HASH> 100644
--- a/mockito_test/empty_mocks_test.py
+++ b/mockito_test/empty_mocks_test.py
@@ -29,3 +29,16 @@ class TestEmptyMocks:
verify(dummy).__call__(1, 2)
+
+class Action(object):
+ def __call__(self, t... | Ensure we can stub __call__`s | py |
diff --git a/script/upload.py b/script/upload.py
index <HASH>..<HASH> 100755
--- a/script/upload.py
+++ b/script/upload.py
@@ -93,9 +93,7 @@ def main():
upload_electron(github, release, os.path.join(DIST_DIR, mksnapshot),
args.upload_to_s3)
- # TODO: make s3 compatible
-
- if PLATFORM == '... | skip headers and pdbs for fake release builds | py |
diff --git a/furious/_pkg_meta.py b/furious/_pkg_meta.py
index <HASH>..<HASH> 100644
--- a/furious/_pkg_meta.py
+++ b/furious/_pkg_meta.py
@@ -1,2 +1,2 @@
-version_info = (0, 9, 5)
+version_info = (1, 0, 0)
version = '.'.join(map(str, version_info)) | Update version to <I> Update the Furious version to <I> as a preparation for the <I> release. | py |
diff --git a/lenstronomy/ImSim/MultiBand/multi_data_base.py b/lenstronomy/ImSim/MultiBand/multi_data_base.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/ImSim/MultiBand/multi_data_base.py
+++ b/lenstronomy/ImSim/MultiBand/multi_data_base.py
@@ -17,10 +17,10 @@ class MultiDataBase(object):
self._num_response_... | base functions available through MultiDataBase | py |
diff --git a/tests/python/pants_test/test_utf8_header.py b/tests/python/pants_test/test_utf8_header.py
index <HASH>..<HASH> 100644
--- a/tests/python/pants_test/test_utf8_header.py
+++ b/tests/python/pants_test/test_utf8_header.py
@@ -6,13 +6,7 @@ from __future__ import (nested_scopes, generators, division, absolute_im... | (Accidentally omitted last change from review) Added a test to show that all files have 'coding=utf8' on them This is a followon to <URL> | py |
diff --git a/DataPanel.py b/DataPanel.py
index <HASH>..<HASH> 100644
--- a/DataPanel.py
+++ b/DataPanel.py
@@ -169,7 +169,7 @@ class DataPanel(Panel.Panel):
self.__update_item_count(container)
def item_key_press(self, text, modifiers, index, parent_row, parent_id):
- if len(text) == 1... | More robust delete key handling. svn r<I> | py |
diff --git a/core.py b/core.py
index <HASH>..<HASH> 100644
--- a/core.py
+++ b/core.py
@@ -260,12 +260,13 @@ class Orchestrator(Module):
continue
self.playing_media = media
self.satisfied_request = req
- self.history.record(self.playing_media,
- self.satisfied_request,
- datetime.date... | core: Orchestrator: record history afterwards | py |
diff --git a/mbuild/tests/test_compound.py b/mbuild/tests/test_compound.py
index <HASH>..<HASH> 100755
--- a/mbuild/tests/test_compound.py
+++ b/mbuild/tests/test_compound.py
@@ -164,6 +164,11 @@ class TestCompound(BaseTest):
xyz = ch3.xyz_with_ports
assert xyz.shape == (12, 3)
+ def test_xyz_set... | Add a test for trying to set a single coord with multiple values | py |
diff --git a/command/install_lib.py b/command/install_lib.py
index <HASH>..<HASH> 100644
--- a/command/install_lib.py
+++ b/command/install_lib.py
@@ -53,7 +53,12 @@ class install_lib (Command):
# Install everything: simply dump the entire contents of the build
# directory to the installation director... | Check if the claimed build directory doesn't exist, and warn that we don't have any Python modules to install (rather than bomb when we try to copy a non-existent directory). | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -107,8 +107,12 @@ def update_ftp(ctx, file):
execute_upload_pickle(file)
-@task
+@task()
def gen_test_df(ctx):
+ """
+ Generate small dataframes that represents the
+ real dataframes used in metrics training... | Add new inv task to README and document new tasks | py |
diff --git a/nion/swift/Application.py b/nion/swift/Application.py
index <HASH>..<HASH> 100644
--- a/nion/swift/Application.py
+++ b/nion/swift/Application.py
@@ -601,8 +601,15 @@ class Application(UIApplication.BaseApplication):
if result and profile:
try:
... | Improve error message when upgraded project already exists. | py |
diff --git a/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/conftest.py b/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/conftest.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/conftes... | Ignore dagster.ExperimentalWarning Summary: Because of the frequency with which we initialize EcsRunLauncher, we end up seeing this warning a bunch during tests. Let's ignore it to make the test output more readable. Depends on D<I> Test Plan: unit Reviewers: dgibson, alangenfeld, johann Reviewed By: dgibson Diff... | py |
diff --git a/bang/deployers/cloud.py b/bang/deployers/cloud.py
index <HASH>..<HASH> 100644
--- a/bang/deployers/cloud.py
+++ b/bang/deployers/cloud.py
@@ -23,14 +23,19 @@ class BaseDeployer(Deployer):
"""Base class for all cloud resource deployers"""
def __init__(self, stack, config, consul):
super(B... | Set region in child process. RegionedDeployer used to set the region for its consul object in its constructor. Since consuls are shared between objects, setting the region at this point meant that all deployer objects would share the region of the latest instantiated deployer. This change pushes the region setting t... | py |
diff --git a/peyotl/phylesystem/git_actions.py b/peyotl/phylesystem/git_actions.py
index <HASH>..<HASH> 100644
--- a/peyotl/phylesystem/git_actions.py
+++ b/peyotl/phylesystem/git_actions.py
@@ -62,7 +62,7 @@ class GitAction(object):
git(self.gitdir, self.gitwd, "checkout","master")
dirs = []
... | Fixed typo in newest_study_id | py |
diff --git a/fluo/urls.py b/fluo/urls.py
index <HASH>..<HASH> 100644
--- a/fluo/urls.py
+++ b/fluo/urls.py
@@ -21,7 +21,7 @@
# THE SOFTWARE.
from __future__ import absolute_import, division, print_function, unicode_literals
-from django.conf.urls import handler400, handler403, handler404, handler500, include, patte... | don't import deprecated patterns in fluo.urls | py |
diff --git a/src/libtcod.py b/src/libtcod.py
index <HASH>..<HASH> 100644
--- a/src/libtcod.py
+++ b/src/libtcod.py
@@ -50,6 +50,7 @@ if 'darwin' in _sys.platform:
_os.environ['DYLD_LIBRARY_PATH'] += ':' + _os.path.realpath(_os.path.join(__path__[0], _get_lib_path_crossplatform()))
else:
_os.envir... | force load SDL with ctypes | py |
diff --git a/dbaas_zabbix/database_providers.py b/dbaas_zabbix/database_providers.py
index <HASH>..<HASH> 100644
--- a/dbaas_zabbix/database_providers.py
+++ b/dbaas_zabbix/database_providers.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-from provider import ZabbixProvider
+from dbaas_zabbix.provider import ZabbixProvid... | Fix import to work with python <I> | py |
diff --git a/tarbell/cli.py b/tarbell/cli.py
index <HASH>..<HASH> 100644
--- a/tarbell/cli.py
+++ b/tarbell/cli.py
@@ -286,6 +286,8 @@ def tarbell_publish(command, args):
puts(colored.green("http://{0}\n".format(bucket_url)))
except KeyboardInterrupt:
show_error("ctrl-c pressed, baili... | catch missing bucket cred error, effectively closes #<I> | py |
diff --git a/phoebe/atmospheres/limbdark.py b/phoebe/atmospheres/limbdark.py
index <HASH>..<HASH> 100644
--- a/phoebe/atmospheres/limbdark.py
+++ b/phoebe/atmospheres/limbdark.py
@@ -3795,6 +3795,14 @@ def download_atm(atm=None):
destin_folder = get_paths()[0]
+ # Does the directory exist?
+ if n... | fixed bug in plotting lcobs if no errorbars are available | py |
diff --git a/django_performance_recorder/__init__.py b/django_performance_recorder/__init__.py
index <HASH>..<HASH> 100644
--- a/django_performance_recorder/__init__.py
+++ b/django_performance_recorder/__init__.py
@@ -1,6 +1,22 @@
# -*- coding:utf-8 -*-
+"""
+isort:skip_file
+"""
from __future__ import absolute_impo... | Make assert statement rich in pytest | py |
diff --git a/cauldron/test/runner/test_printing.py b/cauldron/test/runner/test_printing.py
index <HASH>..<HASH> 100644
--- a/cauldron/test/runner/test_printing.py
+++ b/cauldron/test/runner/test_printing.py
@@ -1,4 +1,3 @@
-import time
import string
import cauldron
@@ -34,18 +33,15 @@ class TestPrinting(scaffolds.R... | Slow Printing Test Fix slow printing test to avoid race conditions. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(name='nested_formset',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
- zip_safe=True,
+ zip_safe=False,
install_requires=[
... | Mark the package not zipsafe so test discovery finds directories. | py |
diff --git a/ecell4/util/decorator.py b/ecell4/util/decorator.py
index <HASH>..<HASH> 100644
--- a/ecell4/util/decorator.py
+++ b/ecell4/util/decorator.py
@@ -77,8 +77,7 @@ def generate_ReactionRule(lhs, rhs, k=None):
'parameter must be given as a number; "%s" given' % str(k))
def traverse_ParseObj(obj, key... | Calculate a sensitivity against time in jacobi_func | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -235,7 +235,8 @@ class _Config:
)
if self.multi_line_output == WrapModes.VERTICAL_GRID_GROUPED_NO_COMMA: # type: ignore
- object.__setattr__(self, "multi_... | squash! fixup! Respect line_length in vertical grid modes and deprecate mode 6 Linting work-around | py |
diff --git a/tests/test_constantq.py b/tests/test_constantq.py
index <HASH>..<HASH> 100644
--- a/tests/test_constantq.py
+++ b/tests/test_constantq.py
@@ -52,8 +52,8 @@ def test_cqt():
# incorrect hop length for a 6-octave analysis
- # num_octaves = 6, 2**6 = 64 > 32
- for hop_length in [-1, 0, 32, 63, 6... | cqt-test: only need to downsample 5 times for 6 octaves | py |
diff --git a/ledger/__metadata__.py b/ledger/__metadata__.py
index <HASH>..<HASH> 100644
--- a/ledger/__metadata__.py
+++ b/ledger/__metadata__.py
@@ -1,7 +1,7 @@
"""
Ledger package metadata
"""
-__version_info__ = (0, 0, 29)
+__version_info__ = (0, 0, 30)
__version__ = '{}.{}.{}'.format(*__version_info__)
__autho... | advance version to push to pypi | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,6 @@ setup(
author_email='juha.yrjola@iki.fi',
install_requires=[
'Django',
- 'djangorestframework',
'requests',
'requests_cache',
'django_mptt', | Remove dependency to djangorestframework | py |
diff --git a/src/ai/backend/client/__init__.py b/src/ai/backend/client/__init__.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/__init__.py
+++ b/src/ai/backend/client/__init__.py
@@ -6,7 +6,7 @@ __all__ = (
*session.__all__,
)
-__version__ = '20.03.0'
+__version__ = '20.09.0a1.dev0'
def get_use... | repo: Prepare for next dev cycle | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.