diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/hgdistver.py b/hgdistver.py
index <HASH>..<HASH> 100644
--- a/hgdistver.py
+++ b/hgdistver.py
@@ -53,7 +53,7 @@ def _data_from_archival(path):
def version_from_archival(cachefile=None):
#XXX: asumes cwd is repo root
if os.path.exists('.hg_archival.txt'):
- data = _data_from_archival('.hg_... | add forgotten extension for archival reading | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,4 +17,11 @@ setup(name='nexmo',
license='MIT',
packages=['nexmo'],
platforms=['any'],
- install_requires=['requests', 'PyJWT', 'cryptography'])
+ install_requires=['requests', 'PyJWT', 'cryptography'],
+ classi... | Added tested Python versions to classifiers. | py |
diff --git a/python/sdss_access/sync/cli.py b/python/sdss_access/sync/cli.py
index <HASH>..<HASH> 100644
--- a/python/sdss_access/sync/cli.py
+++ b/python/sdss_access/sync/cli.py
@@ -20,6 +20,7 @@ class Cli(object):
#tmp_dir = '/tmp'
tmp_dir = gettempdir()
+ tmp_exists = exists(tmp_dir)
if not is_po... | bugfix in sdss_access to ensure tmp dir can be set on windows machines | py |
diff --git a/chainerui/views/result.py b/chainerui/views/result.py
index <HASH>..<HASH> 100644
--- a/chainerui/views/result.py
+++ b/chainerui/views/result.py
@@ -17,6 +17,7 @@ class ResultAPI(MethodView):
def get(self, id=None, project_id=None):
"""get."""
logs_limit = request.args.get('logs_lim... | Enable new flag to list unregistered results | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ def packages(path=None, prefix="", exclude=None):
setup(
name='bigtempo',
version=bigtempo.__version__,
- description='Powerful processment of temporal data.',
+ description=('BigTempo is a powe... | Updated project short description in setup.py. | py |
diff --git a/gdspy/__init__.py b/gdspy/__init__.py
index <HASH>..<HASH> 100644
--- a/gdspy/__init__.py
+++ b/gdspy/__init__.py
@@ -3775,7 +3775,6 @@ class GdsLibrary(object):
def _create_path(self, **kwargs):
xy = kwargs.pop('xy')
if 'bgnextn' in kwargs or 'endextn' in kwargs:
- xy = k... | Fix bug with BGNEXTN/ENDEXTN | py |
diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/qq.py
+++ b/src/you_get/extractors/qq.py
@@ -18,7 +18,9 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False):
title = video_json['vl']['vi'][0]['ti']
... | [qq]fix bad json with fragment_count equals 0 | py |
diff --git a/openpnm/network/Cubic.py b/openpnm/network/Cubic.py
index <HASH>..<HASH> 100644
--- a/openpnm/network/Cubic.py
+++ b/openpnm/network/Cubic.py
@@ -100,10 +100,10 @@ class Cubic(GenericNetwork):
spacing = sp.concatenate((spacing, [1]))
self._spacing = sp.ones(3)*sp.array(spacing, ndmin=... | Fix bug in vectorized version of pore coords generator, all tests pass | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ if __name__ == '__main__':
setup(
name="elasticfun",
license="GPL",
- version='0.3.2',
+ version='0.3.3',
description=u'ElasticSearch Query functionality using Djang... | Bumping to version <I> | py |
diff --git a/pysma/__init__.py b/pysma/__init__.py
index <HASH>..<HASH> 100644
--- a/pysma/__init__.py
+++ b/pysma/__init__.py
@@ -191,6 +191,8 @@ class SMA:
"""Init SMA connection."""
if group not in USERS:
raise KeyError("Invalid user type: {}".format(group))
+ if len(password) >... | Add warning about password length (#<I>) | py |
diff --git a/filehandles/filehandles.py b/filehandles/filehandles.py
index <HASH>..<HASH> 100644
--- a/filehandles/filehandles.py
+++ b/filehandles/filehandles.py
@@ -55,12 +55,16 @@ openers = [] # openers are added at the import time by @register decorator
class GZValidationError(Exception):
"""Raises excepti... | Added initializers to custom exceptions. | py |
diff --git a/fast/symbolic.py b/fast/symbolic.py
index <HASH>..<HASH> 100755
--- a/fast/symbolic.py
+++ b/fast/symbolic.py
@@ -1014,8 +1014,14 @@ def part_symbolic(z, s):
re(rho21)
"""
- if s == 1: return re(z)
- else: return im(z)
+ if s == 1:
+ return re(z)
+ elif s == -1:
+ retu... | Added s=0 to part_symbolic. | py |
diff --git a/pyghmi/ipmi/private/constants.py b/pyghmi/ipmi/private/constants.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/private/constants.py
+++ b/pyghmi/ipmi/private/constants.py
@@ -405,7 +405,7 @@ generic_type_offsets = {
},
3: {
'desc': 'Not redundant', # down to non redundant... | Declare one sort of 'non-redundancy' ok This class of non-redundant simply means the resource is inherently non-redundant per its current configuration. Other sorts of non-redundant are available to indicate when this is a consequence of failure. Change-Id: I<I>d<I>ccffd2ad<I>fc8d<I>fefec<I>cc<I> | py |
diff --git a/greenhouse/scheduler.py b/greenhouse/scheduler.py
index <HASH>..<HASH> 100644
--- a/greenhouse/scheduler.py
+++ b/greenhouse/scheduler.py
@@ -124,7 +124,7 @@ except ImportError:
state.timed_paused = BisectingTimeoutManager()
-def _hit_poller(timeout, keepgoing):
+def _hit_poller(timeout):
unt... | the 'keepgoing' callback wasn't in use any more Change-Id: Ie<I>d8b<I>d8a<I>b<I>c0e<I>d<I>d<I>f | py |
diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/images/images/tables.py
+++ b/openstack_dashboard/dashboards/project/images/images/tables.py
@@ -245,6 +24... | Fix sorting by size for Project->Images table To fix it the proper sorting function should be used in tablesorter jquery plugin, this is achieved by marking the column with correct 'data-type' attribute value. Change-Id: Idc7dfab9cef5a<I>e9ecdba<I>ccaf<I>db<I> Closes-Bug: #<I> | py |
diff --git a/dimod/package_info.py b/dimod/package_info.py
index <HASH>..<HASH> 100644
--- a/dimod/package_info.py
+++ b/dimod/package_info.py
@@ -14,7 +14,7 @@
#
# ================================================================================================
-__version__ = '0.9.13'
+__version__ = '0.10.0.dev0'
... | Update version to <I>.dev0 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ else:
requires = [
'six',
'python-dateutil',
- 'configparser',
+ 'configparser>=3.5.0b2',
]
if not PY3: | fixed dependency, configparser <I> couldn't be installed on py<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ install_requires = [
setup(
name='Flask-Table',
packages=['flask_table'],
- version='0.2.3',
+ version='0.2.4',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
url='ht... | Bump to version <I> | py |
diff --git a/androguard/session.py b/androguard/session.py
index <HASH>..<HASH> 100644
--- a/androguard/session.py
+++ b/androguard/session.py
@@ -191,17 +191,17 @@ class Session(object):
d = None
dx = None
- if len(self.analyzed_apk[digest[0]][1:]) > 1:
- d = []
- ... | return a, None, None if no dex file is found instead of crash | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -252,11 +252,16 @@ class ClassicalCalculator(base.HazardCalculator):
gsims_by_trt = self.csm_info.get_gsims_by_tr... | Better logging [skip CI] | py |
diff --git a/tests/test_process.py b/tests/test_process.py
index <HASH>..<HASH> 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -29,12 +29,6 @@ class TestProcess(unittest.TestCase):
self.process.kill()
self.assertFalse(self.process.is_alive())
- def testCheckReadable(self):
- ... | remove unstable test case read() sometimes stacks | py |
diff --git a/geomet/__init__.py b/geomet/__init__.py
index <HASH>..<HASH> 100644
--- a/geomet/__init__.py
+++ b/geomet/__init__.py
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under ... | geomet: bump to version <I> | py |
diff --git a/raiden/utils/profiling/profiler.py b/raiden/utils/profiling/profiler.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/profiling/profiler.py
+++ b/raiden/utils/profiling/profiler.py
@@ -39,10 +39,7 @@ _state: Optional["GlobalState"] = None
# PEP-0418
# perf_counter = It does include time elapsed... | Removed compatibility for py<I> py<I> has not been supported for a long while, this just remove the compatibility check, and remove the needs to disable the type checker. | py |
diff --git a/reana_commons/publisher.py b/reana_commons/publisher.py
index <HASH>..<HASH> 100644
--- a/reana_commons/publisher.py
+++ b/reana_commons/publisher.py
@@ -43,11 +43,15 @@ class BasePublisher(object):
"""
self._routing_key = routing_key
self._exchange = Exchange(name=exchange or MQ... | publisher: allow kombu.Queue parametrisation * Useful to pass mock Queue during tests. | py |
diff --git a/crashreporter/crashreporter.py b/crashreporter/crashreporter.py
index <HASH>..<HASH> 100644
--- a/crashreporter/crashreporter.py
+++ b/crashreporter/crashreporter.py
@@ -361,7 +361,7 @@ class CrashReporter(object):
ext = os.path.splitext(report)[1]
new_filename = self._rep... | fixed log statement of successful ftp submission when no files sent via ftp | py |
diff --git a/luminoso_api/auth.py b/luminoso_api/auth.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/auth.py
+++ b/luminoso_api/auth.py
@@ -133,7 +133,8 @@ class LuminosoAuth(requests.auth.AuthBase):
(scheme, netloc, path, paramstring, querystring, fragment) = \
urlparse(req.url)
url_d... | Remove dict comprehensions for <I> compatibility | py |
diff --git a/pywws/ToUnderground.py b/pywws/ToUnderground.py
index <HASH>..<HASH> 100644
--- a/pywws/ToUnderground.py
+++ b/pywws/ToUnderground.py
@@ -123,7 +123,8 @@ class ToUnderground(object):
last_update = self.params.get('underground', 'last update')
if last_update:
# upl... | Fixed bug in previous bug fix of ToUnderground.py. | py |
diff --git a/synapse/telepath.py b/synapse/telepath.py
index <HASH>..<HASH> 100644
--- a/synapse/telepath.py
+++ b/synapse/telepath.py
@@ -153,7 +153,12 @@ async def getAhaProxy(urlinfo):
raise
except Exception as e:
- logger.exception(f'aha resolver ({ahaurl})')
+ if isins... | Clarify and sanitize an aha related log message (#<I>) * Clarify and sanitize an aha related log message * account for str / list | py |
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/classes.py
+++ b/Lib/glyphsLib/classes.py
@@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import print_function, ... | use python3 division operator for gridLength | py |
diff --git a/txcelery/__init__.py b/txcelery/__init__.py
index <HASH>..<HASH> 100644
--- a/txcelery/__init__.py
+++ b/txcelery/__init__.py
@@ -3,4 +3,4 @@ from pkg_resources import require
from . import defer
-__version__ = '1.1.1'
+__version__ = '1.1.2' | Updated to version <I> | py |
diff --git a/salt/modules/publish.py b/salt/modules/publish.py
index <HASH>..<HASH> 100644
--- a/salt/modules/publish.py
+++ b/salt/modules/publish.py
@@ -24,8 +24,14 @@ def publish(tgt, fun, arg, expr_form='glob', returner=''):
publication loop, this means that a minion cannot command another minion
to comma... | Add better arg support to the minion publication system | py |
diff --git a/coalaip/models.py b/coalaip/models.py
index <HASH>..<HASH> 100644
--- a/coalaip/models.py
+++ b/coalaip/models.py
@@ -300,8 +300,8 @@ class Right(CoalaIpTransferrableEntity):
transfer_payload = rights_assignment._to_format(
rights_assignment_format)
- super().transfer... | (bug): remove unnecessary extra info passed from Right's transfer() its super method | py |
diff --git a/darkskypy/darkskypy.py b/darkskypy/darkskypy.py
index <HASH>..<HASH> 100644
--- a/darkskypy/darkskypy.py
+++ b/darkskypy/darkskypy.py
@@ -120,9 +120,6 @@ class DarkSkyPy:
def response_units(self):
return self._units
- # TODO: Extend setter
-
- # TODO: Excludes setter
'''
Rai... | Added extend and excludes setters | py |
diff --git a/fermipy/plotting.py b/fermipy/plotting.py
index <HASH>..<HASH> 100644
--- a/fermipy/plotting.py
+++ b/fermipy/plotting.py
@@ -667,7 +667,7 @@ class AnalysisPlotter(fermipy.config.Configurable):
prefix = maps['name']
fig = plt.figure()
p = ROIPlotter(maps['sigma'], gta.roi)
- ... | Tweaking residual plots. | py |
diff --git a/txaws/ec2/client.py b/txaws/ec2/client.py
index <HASH>..<HASH> 100644
--- a/txaws/ec2/client.py
+++ b/txaws/ec2/client.py
@@ -231,8 +231,9 @@ class EC2Client(BaseClient):
if names:
group_names = dict([("GroupName.%d" % (i+1), name)
for i, name in enume... | Fixed a remining call to a query instance to add named parameters. | py |
diff --git a/hydra_base/db/model.py b/hydra_base/db/model.py
index <HASH>..<HASH> 100644
--- a/hydra_base/db/model.py
+++ b/hydra_base/db/model.py
@@ -651,7 +651,7 @@ class Template(Base, Inspect):
for i, typeattr in enumerate(typeattrs):
if typeattr.attr_id in child_typeattrs:
- ... | Remove the annoying log lines from the get_types function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ os.system(pip_version + ' install https://bitbucket.org/lazka/mutagen/get/defaul
setup(
name='soundscrape',
- version='0.23.4',
+ version='0.23.5',
packages=['soundscrape'],
install_requi... | <I> - Fixes two bugs with MixCloud and Unicode | py |
diff --git a/stanza/_version.py b/stanza/_version.py
index <HASH>..<HASH> 100644
--- a/stanza/_version.py
+++ b/stanza/_version.py
@@ -1,4 +1,4 @@
""" Single source of truth for version number """
-__version__ = "1.2.1"
-__resources_version__ = '1.2.1'
+__version__ = "1.2.2"
+__resources_version__ = '1.2.2' | Update version and resources to <I> | py |
diff --git a/pyOCD/interface/hidapi_backend.py b/pyOCD/interface/hidapi_backend.py
index <HASH>..<HASH> 100644
--- a/pyOCD/interface/hidapi_backend.py
+++ b/pyOCD/interface/hidapi_backend.py
@@ -58,15 +58,11 @@ class HidApiUSB(Interface):
logging.debug("No Mbed device connected")
return
- ... | Fix hidapi interface. Return all available boards. Use USB path instead of serial number to identify board. | py |
diff --git a/salt/__init__.py b/salt/__init__.py
index <HASH>..<HASH> 100755
--- a/salt/__init__.py
+++ b/salt/__init__.py
@@ -1,7 +1,7 @@
'''
Make me some salt!
'''
-__version_info__ = (0, 9, 3, 'pre')
+__version_info__ = (0, 9, 3)
__version__ = '.'.join(map(str, __version_info__))
# Import python libs | set the version to <I> | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -209,7 +209,14 @@ class SortImports(object):
if module_name_to_check in self.config[config_key]:
return placement
- for prefix in PYTHONPATH:
+ path... | Smarter virtualenv behaviour inspired by feedback from @spookylukey | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,9 +26,12 @@ from distutils.command.install import install
from distutils.command.install_data import install_data
+#==============================================================================
# Check for Python 3
... | setup.py: Add missing block comment | py |
diff --git a/holoviews/plotting/mpl/element.py b/holoviews/plotting/mpl/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/element.py
+++ b/holoviews/plotting/mpl/element.py
@@ -10,6 +10,7 @@ import matplotlib.colors as mpl_colors
from matplotlib import ticker
from matplotlib.dates import date2num
... | Fixed issues with matplotlib AxesImage legend (#<I>) | py |
diff --git a/internetarchive/__init__.py b/internetarchive/__init__.py
index <HASH>..<HASH> 100644
--- a/internetarchive/__init__.py
+++ b/internetarchive/__init__.py
@@ -29,7 +29,7 @@ from internetarchive.search import Search
from internetarchive.catalog import Catalog
from internetarchive.session import ArchiveSess... | Added `get_username` to `__all__`. | py |
diff --git a/pages/placeholders.py b/pages/placeholders.py
index <HASH>..<HASH> 100644
--- a/pages/placeholders.py
+++ b/pages/placeholders.py
@@ -189,9 +189,9 @@ class ImagePlaceholderNode(PlaceholderNode):
filename = os.path.join(settings.PAGE_UPLOAD_ROOT, 'page_'+str(page.id),
self.name... | Ensure lower cased file extensions and allow 4 charachters on uploaded images | 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
@@ -115,7 +115,7 @@ def test_request_preview_data():
assert isinstance(keys, list)
# Count of keys can be determined
- assert len(keys) == 4331
+ assert len(keys) == 4355
... | Increase ECB EXR key count in test_request_preview_data (#<I>) | py |
diff --git a/analyzers/OTXQuery/otxquery.py b/analyzers/OTXQuery/otxquery.py
index <HASH>..<HASH> 100755
--- a/analyzers/OTXQuery/otxquery.py
+++ b/analyzers/OTXQuery/otxquery.py
@@ -9,9 +9,7 @@ from cortexutils.analyzer import Analyzer
class OTXQueryAnalyzer(Analyzer):
def __init__(self):
- Analyzer.__i... | #<I> Remove the unused service config from OTXQuery analyzer | py |
diff --git a/yabt/graph_test.py b/yabt/graph_test.py
index <HASH>..<HASH> 100644
--- a/yabt/graph_test.py
+++ b/yabt/graph_test.py
@@ -92,7 +92,7 @@ def test_small_dag_scan():
@slow
def test_big_dag_scan():
- random_dag_scan(5000)
+ random_dag_scan(2000)
def multithreaded_dag_scanner(num_nodes, num_threa... | Reduce sizes of DAGs in big scan tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,10 +13,12 @@ from setuptools import setup,find_packages
# python3.4 setup.py register
# python3.4 setup.py bdist_wheel upload
# python3.4 -m pip install
+import synapse
+import synapse.common as s_common
setup(
... | udpated setup.py to use synapse.version programatically | py |
diff --git a/pyamg/gallery/stencil.py b/pyamg/gallery/stencil.py
index <HASH>..<HASH> 100644
--- a/pyamg/gallery/stencil.py
+++ b/pyamg/gallery/stencil.py
@@ -85,7 +85,7 @@ def stencil_grid(S, grid, dtype=None, format=None):
# compute index offset of each dof within the stencil
strides = numpy.cumprod( [1] ... | fixed the ValueError bug with stencil.py | py |
diff --git a/blitzdb/tests/test_querying.py b/blitzdb/tests/test_querying.py
index <HASH>..<HASH> 100644
--- a/blitzdb/tests/test_querying.py
+++ b/blitzdb/tests/test_querying.py
@@ -6,7 +6,6 @@ from .fixtures import *
from blitzdb import Document, FileBackend
from blitzdb.tests.helpers.movie_data import Actor, Dir... | Remove obsolete test … that was added by me, not from existing test codebase. | py |
diff --git a/httpbin/core.py b/httpbin/core.py
index <HASH>..<HASH> 100644
--- a/httpbin/core.py
+++ b/httpbin/core.py
@@ -1725,7 +1725,8 @@ def image_svg():
def resource(filename):
path = os.path.join(tmpl_dir, filename)
- return open(path, "rb").read()
+ with open(path, "rb") as f:
+ return f.read(... | Fix a ResourceWarning: unclosed file in core.py | py |
diff --git a/versions/models.py b/versions/models.py
index <HASH>..<HASH> 100644
--- a/versions/models.py
+++ b/versions/models.py
@@ -318,7 +318,7 @@ class VersionedQuerySet(QuerySet):
# This is the counter part of one-to-many field
if not direct:
table_name = fie... | Adding handling of ForeignKey in _filter_or_exclude() | py |
diff --git a/test_src/test_proj/tests.py b/test_src/test_proj/tests.py
index <HASH>..<HASH> 100644
--- a/test_src/test_proj/tests.py
+++ b/test_src/test_proj/tests.py
@@ -1288,6 +1288,15 @@ class ProjectTestCase(BaseTestCase):
self.assertEqual(results[18]['status'], 204)
self.assertEqual(results[19]['... | Add test for nested append child | py |
diff --git a/hpOneView/__init__.py b/hpOneView/__init__.py
index <HASH>..<HASH> 100644
--- a/hpOneView/__init__.py
+++ b/hpOneView/__init__.py
@@ -7,7 +7,7 @@ hpOneView is a library for interfacing with HP OneView Management Appliance.
"""
__title__ = 'hpOneView'
-__version__ = '0.0.1'
+__version__ = '101.0.1'
__c... | Start using the first octet of the internal __version__ string to represent the minium OneView API version that is currently supported by the library. | py |
diff --git a/synapse/lib/ast.py b/synapse/lib/ast.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/ast.py
+++ b/synapse/lib/ast.py
@@ -351,7 +351,7 @@ class ForLoop(Oper):
ivar = self.kids[1].value()
subq = self.kids[2]
- items = runt.vars.get(ivar)
+ items = runt.getVar(ivar)
... | kill off direct vars dict access | py |
diff --git a/tests/test_replay.py b/tests/test_replay.py
index <HASH>..<HASH> 100644
--- a/tests/test_replay.py
+++ b/tests/test_replay.py
@@ -5,6 +5,7 @@ test_replay
-----------
"""
+import json
import os
import pytest
@@ -61,3 +62,21 @@ def test_raise_if_replay_dir_creation_fails(
replay.dump(templat... | Implement test to ensure the context is dumped | py |
diff --git a/shinken/modules/logstore_sqlite.py b/shinken/modules/logstore_sqlite.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/logstore_sqlite.py
+++ b/shinken/modules/logstore_sqlite.py
@@ -167,7 +167,7 @@ class LiveStatusLogStoreSqlite(BaseModule):
# 'options', 'plugin_output', 'service_description',... | Much more useful index for log stored in sqlite | py |
diff --git a/test/unit_test/gui/test_main_ui.py b/test/unit_test/gui/test_main_ui.py
index <HASH>..<HASH> 100644
--- a/test/unit_test/gui/test_main_ui.py
+++ b/test/unit_test/gui/test_main_ui.py
@@ -323,6 +323,7 @@ class TestMainUI():
parentdir, fname = os.path.split(fpath)
vocal_editor.setRootDirs(pa... | tweak to get test to pass on windows rig machine | py |
diff --git a/phono3py/other/alm_wrapper.py b/phono3py/other/alm_wrapper.py
index <HASH>..<HASH> 100644
--- a/phono3py/other/alm_wrapper.py
+++ b/phono3py/other/alm_wrapper.py
@@ -94,7 +94,9 @@ def get_fc3(supercell,
if 'cutoff_distance' in disp_dataset:
cut_d = disp_dataset['cutoff_distance']
... | No cutoff radii is set for 2nd order force constants in 3rd order force constants calculation for ALM | py |
diff --git a/sacn/messages/universe_discovery.py b/sacn/messages/universe_discovery.py
index <HASH>..<HASH> 100644
--- a/sacn/messages/universe_discovery.py
+++ b/sacn/messages/universe_discovery.py
@@ -44,7 +44,6 @@ class UniverseDiscoveryPacket(RootLayer):
@property
def universes(self) -> tuple:
re... | Pull Request Responses & added tests addressed comments from pull request rebase on upstream current <I> | py |
diff --git a/openid/consumer/consumer.py b/openid/consumer/consumer.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/consumer.py
+++ b/openid/consumer/consumer.py
@@ -240,7 +240,7 @@ from openid.consumer.discover import OpenIDServiceEndpoint, OPENID_1_0_TYPE
from yadis.services import applyFilter as extractService... | [project @ XrdsError -> XRDSError] | py |
diff --git a/cli.py b/cli.py
index <HASH>..<HASH> 100755
--- a/cli.py
+++ b/cli.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+import binascii
import optparse
import pprint
import signal
@@ -54,6 +55,10 @@ def get_file_list(file):
assert isinstance(file, starbound.Package), 'Can only get file list out of packages... | cli: Enable getting the data out of a leaf | py |
diff --git a/did/plugins/gerrit.py b/did/plugins/gerrit.py
index <HASH>..<HASH> 100644
--- a/did/plugins/gerrit.py
+++ b/did/plugins/gerrit.py
@@ -281,6 +281,7 @@ class AddedPatches(GerritUnit):
date = self.get_gerrit_date(chg['date'][:10])
comment_date = self.get_gerrit_date(chg['date... | Do not list first patch set among 'additional' | py |
diff --git a/tests/kvs_test.py b/tests/kvs_test.py
index <HASH>..<HASH> 100644
--- a/tests/kvs_test.py
+++ b/tests/kvs_test.py
@@ -75,7 +75,9 @@ class KVSTestCase(unittest.TestCase):
java_class = jpype.JClass("org.gem.engine.hazard.redis.Cache")
print "Not dead yet, and found the class..."
se... | tests/kvs_test: Fixed a test which will break if you specify a non-zero DB num for the KVS. Former-commit-id: <I>d1d9f<I>ec<I>ea<I>da<I>aab<I>f2f<I>b9f | py |
diff --git a/releases/__init__.py b/releases/__init__.py
index <HASH>..<HASH> 100644
--- a/releases/__init__.py
+++ b/releases/__init__.py
@@ -30,7 +30,7 @@ def issue_nodelist(name, link=None):
return signifier + hyperlink + [nodes.inline(text=":")] + trail
-release_line_re = re.compile(r'(\d+\.\d+)\+') # e.g.... | Tighten up release_line_re for more-correct errors atm | py |
diff --git a/trepan/lib/format.py b/trepan/lib/format.py
index <HASH>..<HASH> 100644
--- a/trepan/lib/format.py
+++ b/trepan/lib/format.py
@@ -40,11 +40,11 @@ color_scheme[Generic.Emph] = color_scheme[Comment.Preproc]
# FIXME: change some horrible colors under atom dark
# this is a hack until I get general way to... | Adjust for what seems like newer pygments styles... darkgray -> gray darkblue -> blue | py |
diff --git a/actstream/models.py b/actstream/models.py
index <HASH>..<HASH> 100644
--- a/actstream/models.py
+++ b/actstream/models.py
@@ -50,7 +50,7 @@ class ActionManager(models.Manager):
Produces a QuerySet of most recent activities for any model
"""
return self.filter(
- actor_... | Bugfix in stream_for_model | py |
diff --git a/greenhouse/io.py b/greenhouse/io.py
index <HASH>..<HASH> 100644
--- a/greenhouse/io.py
+++ b/greenhouse/io.py
@@ -49,6 +49,11 @@ class Socket(object):
_more_sock_methods)
+def socket_fromfd(fd, family, type_, *args):
+ raw_sock = socket.fromfd(fd, family, type_, *args)
+ return Socke... | fromfd() needs a more specific name given File.fromfd, and Socket.settimeout() needs tweaking | py |
diff --git a/simuvex/plugins/symbolic_memory.py b/simuvex/plugins/symbolic_memory.py
index <HASH>..<HASH> 100644
--- a/simuvex/plugins/symbolic_memory.py
+++ b/simuvex/plugins/symbolic_memory.py
@@ -239,6 +239,7 @@ class SimSymbolicMemory(SimMemory):
except KeyError:
name = "%s_%x" % (self... | forgot to write the unconstrained string back... | py |
diff --git a/functional/test/test_io.py b/functional/test/test_io.py
index <HASH>..<HASH> 100644
--- a/functional/test/test_io.py
+++ b/functional/test/test_io.py
@@ -1,6 +1,6 @@
import unittest
-from functional.io import ReusableFile, GZFile, BZ2File, XZFile
+from functional.io import ReusableFile, GZFile, BZ2File,... | Add test for unchecked case | py |
diff --git a/examples/feedinlib_example_coastdat.py b/examples/feedinlib_example_coastdat.py
index <HASH>..<HASH> 100644
--- a/examples/feedinlib_example_coastdat.py
+++ b/examples/feedinlib_example_coastdat.py
@@ -13,9 +13,6 @@ from shapely import geometry as geopy
from oemof_pg import db
from oemof_pg import coastd... | remove plot_fkt = True from example | 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
@@ -156,7 +156,9 @@ def _get_service_info(service):
state = service_info.get_property('State')
if state == 'ready' or state == 'online':
data['up'... | modules/nilrt_ip.py: Add default value for gateway In case that connman cannot provide a default gateway, then this should have a default value (<I>) to keep consistency between various ip modules. | py |
diff --git a/beets/mediafile.py b/beets/mediafile.py
index <HASH>..<HASH> 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -398,8 +398,9 @@ class StorageStyle(object):
self.float_places = float_places
# Convert suffix to correct string type.
- if self.suffix and self.as_type is uni... | Fix bytes/str with unicode-nazi Further cleaning will require setting unicode_literals on plugins Original: beetbox/beets@<I>c | py |
diff --git a/IO/fcsreader.py b/IO/fcsreader.py
index <HASH>..<HASH> 100755
--- a/IO/fcsreader.py
+++ b/IO/fcsreader.py
@@ -370,7 +370,10 @@ def parse_fcs(path, meta_data_only=False, output_format='DataFrame', compensate=
if compensate == True:
raise_parser_feature_not_implemented('Compensation has not bee... | FIX: read_meta_only now only reads meta | py |
diff --git a/signalfx/version.py b/signalfx/version.py
index <HASH>..<HASH> 100644
--- a/signalfx/version.py
+++ b/signalfx/version.py
@@ -1,4 +1,4 @@
# Copyright (C) 2015 SignalFx, Inc. All rights reserved.
name = 'signalfx'
-version = '0.3.8'
+version = '0.3.9' | Bumping version to <I> | py |
diff --git a/visidata/mainloop.py b/visidata/mainloop.py
index <HASH>..<HASH> 100644
--- a/visidata/mainloop.py
+++ b/visidata/mainloop.py
@@ -159,9 +159,10 @@ def mainloop(self, scr):
clicktype = ''
try:
devid, x, y, z, bstate = curses.getmouse()
- ... | [split-pane] fix cursor clicking on active pane | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2014 Bitergia
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General P... | [tests] Ignore jinja2 import warnings Ignore jinja2 warnings when it tries to import its 'tests' module using relative imports. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,9 @@
import sys
+from os import chdir
from os.path import join, dirname, abspath
from setuptools import setup
-project_dir = abspath(dirname(__file__))
-
-
def read_path(*parts):
with open(join(project_di... | Fix: setup.py now chdir's to the project directory before starting. | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100755
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -389,7 +389,7 @@ def grab_hidden_video_url(href):
page = get_page(href)
soup = BeautifulSoup(page)
l = soup.find('source', attrs={'type': 'video/mp4'})... | Fixed #<I>: Downloading University of Washington course materila | py |
diff --git a/src/foremast/pipeline/__main__.py b/src/foremast/pipeline/__main__.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/__main__.py
+++ b/src/foremast/pipeline/__main__.py
@@ -20,7 +20,6 @@ def main():
add_debug(parser)
add_app(parser)
add_properties(parser)
- add_gitlab_token(parse... | Remove token, as its handled by new config format Related: PSOBAT-<I> | py |
diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/config/__init__.py
+++ b/src/_pytest/config/__init__.py
@@ -533,12 +533,19 @@ class PytestPluginManager(PluginManager):
else:
directory = path
+ # Optimization: avoid... | config: optimize PytestPluginManager._getconftestmodules Now that it's no longer using `@lru_cache`, use another check to avoid re-computation. Although `@lru_cache` is faster than the full function call + checks, this approach also has the advantage that the caching works for more than <I> entries. | py |
diff --git a/spyder/plugins/ipythonconsole.py b/spyder/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole.py
@@ -1221,6 +1221,13 @@ class IPythonConsole(SpyderPluginWidget):
os.environ.pop('VIRTUAL_ENV', None)
pyexe... | IPython Console: Avoid showing cmd windows when starting kernels | py |
diff --git a/salt/modules/linux_shadow.py b/salt/modules/linux_shadow.py
index <HASH>..<HASH> 100644
--- a/salt/modules/linux_shadow.py
+++ b/salt/modules/linux_shadow.py
@@ -376,6 +376,10 @@ def set_password(name, password, use_usermod=False, root=None):
salt '*' shadow.set_password root '$1$UYCIxa628.9qXjp... | Don't attempt password change if user does not exist | py |
diff --git a/host/basil/dut.py b/host/basil/dut.py
index <HASH>..<HASH> 100644
--- a/host/basil/dut.py
+++ b/host/basil/dut.py
@@ -268,15 +268,27 @@ class Dut(Base):
return self._hardware_layer[item]
elif item in self._transfer_layer:
return self._transfer_layer[item]
- else:
-... | MAINT: find modules by type get its own function | py |
diff --git a/sailthru/sailthru_client.py b/sailthru/sailthru_client.py
index <HASH>..<HASH> 100644
--- a/sailthru/sailthru_client.py
+++ b/sailthru/sailthru_client.py
@@ -595,6 +595,8 @@ class SailthruClient(object):
if 'send_id' in post_params:
send_id = post_params['send_id']
send_r... | add checking to see i 'error' is in the json keys | py |
diff --git a/tofu/data/_core_new.py b/tofu/data/_core_new.py
index <HASH>..<HASH> 100644
--- a/tofu/data/_core_new.py
+++ b/tofu/data/_core_new.py
@@ -60,7 +60,7 @@ class DataHolder(utils.ToFuObject):
__metaclass__ = ABCMeta
# Fixed (class-wise) dictionary of default properties
- _ddef = {'Id': {'include... | [Issue<I>] Advanced a bit... | py |
diff --git a/panels/_version.py b/panels/_version.py
index <HASH>..<HASH> 100644
--- a/panels/_version.py
+++ b/panels/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.0.34"
+__version__ = "0.0.35" | Update version number to <I> | py |
diff --git a/spyder/widgets/variableexplorer/namespacebrowser.py b/spyder/widgets/variableexplorer/namespacebrowser.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/namespacebrowser.py
+++ b/spyder/widgets/variableexplorer/namespacebrowser.py
@@ -132,7 +132,8 @@ class NamespaceBrowser(QWidget):
... | Adds a validation for the parent. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ def readfile(filename):
setup(
name='cli_tools',
- version='0.2.5',
+ version='0.3.0',
author='Kevin L. Mitchell',
author_email='klmitch@mit.edu',
url='https://github.com/klmitch/cli... | Bump the version number for release There's more that needs to be done here, and the ability to decorate classes needs to be documented, but it's been a while since the last release, and it would be nice to update the home page link. | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -175,13 +175,15 @@ class Channels(BaseAPI):
return self.get('channels.list',
params={'exclude_archived': exclude_archived})
- def history(self,... | "inclusive" argument for channels.history API. | py |
diff --git a/toucan_data_sdk/utils/postprocess/filter_by_date.py b/toucan_data_sdk/utils/postprocess/filter_by_date.py
index <HASH>..<HASH> 100644
--- a/toucan_data_sdk/utils/postprocess/filter_by_date.py
+++ b/toucan_data_sdk/utils/postprocess/filter_by_date.py
@@ -130,4 +130,4 @@ def filter_by_date(df, date_col, date... | remove unnecessary access to `df.loc` `df[mask]` works just as well | py |
diff --git a/armstrong/core/arm_wells/views.py b/armstrong/core/arm_wells/views.py
index <HASH>..<HASH> 100644
--- a/armstrong/core/arm_wells/views.py
+++ b/armstrong/core/arm_wells/views.py
@@ -21,7 +21,7 @@ class SimpleWellView(TemplateView):
return Well.objects.get_current(title=self.well_title)
... | Switch to None based on feedback from @niran | py |
diff --git a/tests/filters/test_base_filter.py b/tests/filters/test_base_filter.py
index <HASH>..<HASH> 100644
--- a/tests/filters/test_base_filter.py
+++ b/tests/filters/test_base_filter.py
@@ -8,9 +8,12 @@
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
+im... | Skip test from #<I> for python<I> version (#<I>) | py |
diff --git a/RL/utility/utility.py b/RL/utility/utility.py
index <HASH>..<HASH> 100644
--- a/RL/utility/utility.py
+++ b/RL/utility/utility.py
@@ -75,7 +75,7 @@ def vec_list_from_arg(arg):
def errfmt(errstr):
- return fill(dedent(errstr))
+ return fill(dedent(errstr)).lstrip()
def flat_tuple(seq): | Added lstrip() to errfmt() to be sure | py |
diff --git a/pyorbital/tlefile.py b/pyorbital/tlefile.py
index <HASH>..<HASH> 100644
--- a/pyorbital/tlefile.py
+++ b/pyorbital/tlefile.py
@@ -361,6 +361,7 @@ class Downloader(object):
fnames += glob.glob(path)
else:
if not os.path.exists(path):
+ loggin... | Add a error log message if a file wasn't found | py |
diff --git a/bugwarrior/db.py b/bugwarrior/db.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/db.py
+++ b/bugwarrior/db.py
@@ -418,7 +418,7 @@ def synchronize(issue_generator, conf, main_section, dry_run=False):
log.name('db').info(
"Completing task {0} {1}{2}",
issue,
- ta... | It's a shame that twiggy doesn't handle encodings gracefully. Bad choice of a logging lib, @ralphbean. | py |
diff --git a/disk/datadog_checks/disk/disk.py b/disk/datadog_checks/disk/disk.py
index <HASH>..<HASH> 100644
--- a/disk/datadog_checks/disk/disk.py
+++ b/disk/datadog_checks/disk/disk.py
@@ -106,7 +106,7 @@ class Disk(AgentCheck):
self.devices_label = {}
- def check(self, instance):
+ def check(self,... | Use Agent 8 signature (#<I>) | py |
diff --git a/tests/symbols/test_symbolVAR.py b/tests/symbols/test_symbolVAR.py
index <HASH>..<HASH> 100644
--- a/tests/symbols/test_symbolVAR.py
+++ b/tests/symbols/test_symbolVAR.py
@@ -11,7 +11,7 @@ import symbols
from symbols.type_ import Type
from api.constants import SCOPE
from api.constants import KIND
-
+from... | Checks for .t property when class is CLASS.const | py |
diff --git a/AegeanTools/fitting.py b/AegeanTools/fitting.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/fitting.py
+++ b/AegeanTools/fitting.py
@@ -206,6 +206,7 @@ def jacobian(pars, x, y):
return np.array(matrix)
+
def hessian(pars, x, y):
"""
Create a hessian matrix corresponding to the source ... | test_jcaobian_shape --> test_jacobian_shape | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.