diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/rflink/protocol.py b/rflink/protocol.py
index <HASH>..<HASH> 100644
--- a/rflink/protocol.py
+++ b/rflink/protocol.py
@@ -232,8 +232,8 @@ class CommandSerialization(PacketHandling):
super().__init__(*args, **kwargs)
if packet_callback:
self.packet_callback = packet_callback
-... | Drop a few more loop arguments Fixes #<I> | py |
diff --git a/auto_ml/utils_scoring.py b/auto_ml/utils_scoring.py
index <HASH>..<HASH> 100644
--- a/auto_ml/utils_scoring.py
+++ b/auto_ml/utils_scoring.py
@@ -218,7 +218,7 @@ class RegressionScorer(object):
predictions = [val for idx, val in enumerate(predictions) if idx not in bad_val_indices]
... | Improves logging <I>x see above. | py |
diff --git a/Lib/fontbakery/specifications/googlefonts.py b/Lib/fontbakery/specifications/googlefonts.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/specifications/googlefonts.py
+++ b/Lib/fontbakery/specifications/googlefonts.py
@@ -2766,6 +2766,7 @@ def com_google_fonts_test_073(ttFont):
)
def com_google_fonts... | Printing the offending strings on check #<I> by using the unidecode module for printing ASCII transliterations of the offending unicode strings to the terminal/log (issue #<I>) | py |
diff --git a/steemtools/blockchain.py b/steemtools/blockchain.py
index <HASH>..<HASH> 100644
--- a/steemtools/blockchain.py
+++ b/steemtools/blockchain.py
@@ -115,10 +115,6 @@ class Blockchain(object):
return int(guess_block)
- def get_all_usernames(self, last_user=-1):
- usernames = self.steem.r... | our recursive function was causing a stack overflow. Its now replaced with native rpc call | py |
diff --git a/pngcanvas.py b/pngcanvas.py
index <HASH>..<HASH> 100644
--- a/pngcanvas.py
+++ b/pngcanvas.py
@@ -223,14 +223,12 @@ class PNGCanvas:
elif tag == 'IDAT':
raw_data = zlib.decompress(data)
i = 0
+ prev = None
for y in range(height)... | Simplify `prev` usage in load method | py |
diff --git a/scanpy/tests/test_read_10x.py b/scanpy/tests/test_read_10x.py
index <HASH>..<HASH> 100644
--- a/scanpy/tests/test_read_10x.py
+++ b/scanpy/tests/test_read_10x.py
@@ -10,8 +10,8 @@ ROOT = os.path.join(ROOT, '_data', '10x_data')
def assert_anndata_equal(a1, a2):
assert a1.shape == a2.shape
- asser... | I had forgotten what `all(dataframe)` does (#<I>) | py |
diff --git a/ipywidgets/widgets/interaction.py b/ipywidgets/widgets/interaction.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/widgets/interaction.py
+++ b/ipywidgets/widgets/interaction.py
@@ -15,7 +15,7 @@ from inspect import getcallargs
from IPython.core.getipython import get_ipython
from . import (Widget, Text,
... | Add ScrollableDropdown to interactions | py |
diff --git a/codenerix_pos/models.py b/codenerix_pos/models.py
index <HASH>..<HASH> 100644
--- a/codenerix_pos/models.py
+++ b/codenerix_pos/models.py
@@ -176,18 +176,15 @@ class POSHardware(CodenerixModel):
CASH: {'data': '...ANYTHING except None to open the Cash Drawer...' }
DNIE: {'data... | Communication for POSHardware avaiable for all devices! | py |
diff --git a/vobject/__init__.py b/vobject/__init__.py
index <HASH>..<HASH> 100644
--- a/vobject/__init__.py
+++ b/vobject/__init__.py
@@ -76,7 +76,7 @@ VObject Overview
"""
-from .base import newFromBehavior, readOne
+from .base import newFromBehavior, readOne, readComponents
def iCalendar(): | Put readComponents back into init with readOne | py |
diff --git a/jams/core.py b/jams/core.py
index <HASH>..<HASH> 100644
--- a/jams/core.py
+++ b/jams/core.py
@@ -685,11 +685,15 @@ class JamsFrame(pd.DataFrame):
if duration is None or not (duration >= 0.0):
raise ParameterError('duration={} must be a non-negative number'.format(duration))
- ... | fixed most of the append-type-errors | py |
diff --git a/perceval/backends/core/github.py b/perceval/backends/core/github.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/core/github.py
+++ b/perceval/backends/core/github.py
@@ -78,7 +78,7 @@ class GitHub(Backend):
:param sleep_time: time to sleep in case
of connection problems
"""
- ... | [github] Set category when calling fetch and fetch_from_archive This patch adds to the params of the fetch_items method the category. Thus, it allows to handle fetching operations (fetch and fetch_from_archive) with multiple categories | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
-# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
+# Generated by jaraco.develop 2.14
+# https://pypi.python.org/pypi/jaraco.develop
import io
import sys | Regenerate project skeleton with jaraco.develop <I> | py |
diff --git a/cpt/builds_generator.py b/cpt/builds_generator.py
index <HASH>..<HASH> 100644
--- a/cpt/builds_generator.py
+++ b/cpt/builds_generator.py
@@ -6,11 +6,11 @@ from conans.model.ref import ConanFileReference
from conans.model.version import Version
from cpt.tools import split_colon_env, transform_list_option... | Changed default versions (#<I>) | py |
diff --git a/tests/parser/syntax/test_code_size.py b/tests/parser/syntax/test_code_size.py
index <HASH>..<HASH> 100644
--- a/tests/parser/syntax/test_code_size.py
+++ b/tests/parser/syntax/test_code_size.py
@@ -23,10 +23,15 @@ def test_block_fail(bad_code):
valid_list = [
"""
@external
-def foo() -> int128:
+def... | test: update address.codesize tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,8 @@ with open(os.path.join('sphinxcontrib', 'chapeldomain.py'), 'r') as fp:
setup(
name='sphinxcontrib-chapeldomain',
version=version,
- url='',
- download_url='',
+ url='https://github.com/chape... | Update urls in setup.py | py |
diff --git a/io3d/datawriter.py b/io3d/datawriter.py
index <HASH>..<HASH> 100644
--- a/io3d/datawriter.py
+++ b/io3d/datawriter.py
@@ -15,11 +15,9 @@ import re
try:
import dicom
dicom.debug(False)
- print("imported dicom")
except:
import pydicom as dicom
dicom.config.debug(False)
- print("im... | removed print "imported pydicom" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
include_package_data=True,
url='https://github.com/mback2k/python-hcalendar',
license='MIT',
- description=u' '.join(__import__('hcalendar').__doc__.splitlines()).strip(),
+ descripti... | Fixed setup.py to support Python 3 | py |
diff --git a/revision_store.py b/revision_store.py
index <HASH>..<HASH> 100644
--- a/revision_store.py
+++ b/revision_store.py
@@ -306,7 +306,7 @@ class AbstractRevisionStore(object):
if len(parents):
validator, new_inv = self.repo.add_inventory_by_delta(parents[0],
inv_delta, rev... | back out cache propagation until more reliable | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -77,17 +77,25 @@ class ESPROM:
def read(self, length=1):
b = ''
while len(b) < length:
- c = self._port.read(1)
- if c == '\xdb':
- c = self._port.read(1)
- ... | Use bulk reads to massively reduce overheads. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.8.5.1'
+version = '0.8.5.2.dev0'
setuptools.setup( | Back to development: <I> | py |
diff --git a/a10_neutron_lbaas/v2/handler_lb.py b/a10_neutron_lbaas/v2/handler_lb.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/v2/handler_lb.py
+++ b/a10_neutron_lbaas/v2/handler_lb.py
@@ -68,7 +68,9 @@ class LoadbalancerHandler(handler_base_v2.HandlerBaseV2):
def stats(self, context, lb):
with ... | Added actual implementation to LB stats method Needs tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ lint_requires = [
]
doc_requires = [
- 'mkdocs',
+ 'mkdocs==1.1',
'mkdocs-material',
'mkdocstrings==0.15.0'
] | pin mkdocs to avoid build issue with <I> | py |
diff --git a/taggit_selectize/__init__.py b/taggit_selectize/__init__.py
index <HASH>..<HASH> 100644
--- a/taggit_selectize/__init__.py
+++ b/taggit_selectize/__init__.py
@@ -1 +1 @@
-__version__ = '2.7.0'
+__version__ = '2.7.1' | bump release version because previous one is messed up | py |
diff --git a/simple_rest_client/api.py b/simple_rest_client/api.py
index <HASH>..<HASH> 100644
--- a/simple_rest_client/api.py
+++ b/simple_rest_client/api.py
@@ -46,8 +46,13 @@ class API:
json_encode_body=json_encode_body or self.json_encode_body,
ssl_verify=self.ssl_verify,
)
- ... | Replace '-' with '_' in attr name. (#<I>) * Update api.py. Replace '-' with '_' in attr name. Some APIs have hyphen in URLs. Python doesn't allow hyphen in attribute name. This change replace '-' with '_' Example: <URL> | py |
diff --git a/gyp_learnuv.py b/gyp_learnuv.py
index <HASH>..<HASH> 100755
--- a/gyp_learnuv.py
+++ b/gyp_learnuv.py
@@ -43,7 +43,7 @@ def host_arch():
def compiler_version():
proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
is_clang = 'clang' in proc.communicate()[0].split('\n')[0]
- p... | fix for version info in recent gcc | py |
diff --git a/bokeh/models/glyphs.py b/bokeh/models/glyphs.py
index <HASH>..<HASH> 100644
--- a/bokeh/models/glyphs.py
+++ b/bokeh/models/glyphs.py
@@ -286,9 +286,9 @@ class Image(Glyph):
def __init__(self, **kwargs):
if 'palette' in kwargs and 'color_mapper' in kwargs:
raise ValueError("only ... | Better handling of default palette in image glyph | py |
diff --git a/elasticsearch/connection_pool.py b/elasticsearch/connection_pool.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/connection_pool.py
+++ b/elasticsearch/connection_pool.py
@@ -29,7 +29,7 @@ class ConnectionSelector(object):
Example of where this would be useful is a zone-aware selector that would
... | Fix typo it's -> its | py |
diff --git a/ella/newman/fields.py b/ella/newman/fields.py
index <HASH>..<HASH> 100644
--- a/ella/newman/fields.py
+++ b/ella/newman/fields.py
@@ -12,7 +12,6 @@ from django.template import Template, TextNode, TemplateSyntaxError
from django.utils.translation import ugettext_lazy as _
from django.forms.models import M... | Commented Flash widget in image field | py |
diff --git a/cdrouter/imports.py b/cdrouter/imports.py
index <HASH>..<HASH> 100644
--- a/cdrouter/imports.py
+++ b/cdrouter/imports.py
@@ -105,6 +105,7 @@ class Request(object):
:param devices: (optional) Dict of strings to :class:`imports.Resource <imports.Resource>` objects.
:param packages: (optional) Dict... | Fixed missing 'tags' docstring to imports.Request | py |
diff --git a/io3d/datawriter.py b/io3d/datawriter.py
index <HASH>..<HASH> 100644
--- a/io3d/datawriter.py
+++ b/io3d/datawriter.py
@@ -108,7 +108,7 @@ class DataWriter:
self._write_with_sitk(path, data3d, mtd)
self._fix_sitk_bug(path, metadata)
if sfin and segmentation is not None... | fix - save segmentation not data3d | py |
diff --git a/presto-docs/src/main/sphinx/ext/download.py b/presto-docs/src/main/sphinx/ext/download.py
index <HASH>..<HASH> 100644
--- a/presto-docs/src/main/sphinx/ext/download.py
+++ b/presto-docs/src/main/sphinx/ext/download.py
@@ -32,7 +32,7 @@ def maven_filename(artifact, version, packaging, classifier):
def ... | Use HTTPS for documentation links to Maven Central | py |
diff --git a/src/qinfer/examples/qubit_tomography_example.py b/src/qinfer/examples/qubit_tomography_example.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/examples/qubit_tomography_example.py
+++ b/src/qinfer/examples/qubit_tomography_example.py
@@ -53,10 +53,10 @@ import time
import sys
## Imports from within QIn... | Recommited example fix. | py |
diff --git a/tests/integration/WatchmanTestCase.py b/tests/integration/WatchmanTestCase.py
index <HASH>..<HASH> 100644
--- a/tests/integration/WatchmanTestCase.py
+++ b/tests/integration/WatchmanTestCase.py
@@ -262,7 +262,7 @@ class WatchmanTestCase(unittest.TestCase):
sub['files'] = files
... | tests: force map to be evaluated map() is lazy on Python 3 -- we need it to be eagerly evaluated. | py |
diff --git a/yamllint/rules/new_lines.py b/yamllint/rules/new_lines.py
index <HASH>..<HASH> 100644
--- a/yamllint/rules/new_lines.py
+++ b/yamllint/rules/new_lines.py
@@ -48,6 +48,6 @@ def check(conf, line):
yield LintProblem(1, line.end - line.start + 1,
'wrong new l... | new-lines: explicitly check \n for type: unix To be more consistent with the other types, unix now also checks against the expected newline character (`\n`) instead of checking if a wrong character (`\r`) is present | py |
diff --git a/assembly/geneticmap.py b/assembly/geneticmap.py
index <HASH>..<HASH> 100644
--- a/assembly/geneticmap.py
+++ b/assembly/geneticmap.py
@@ -148,9 +148,7 @@ class ScaffoldOO (object):
else:
distances[ab] = dist
- threshold = 20
- distance_edges = list((a, ... | remove distance threshold in assembly.geneticmap.ScaffoldOO | py |
diff --git a/master/buildbot/test/integration/test_worker_transition.py b/master/buildbot/test/integration/test_worker_transition.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_worker_transition.py
+++ b/master/buildbot/test/integration/test_worker_transition.py
@@ -206,10 +206,12 @@ class P... | Use assertRaises as context manager in test_worker_transition | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -223,6 +223,10 @@ class KubeSpawner(Spawner):
Out of these, it seems that only `start`, `stop`, and `poll` would need
the initialization logic in this... | Move @_async_init decorator to _start() | py |
diff --git a/salt/client/ssh/shell.py b/salt/client/ssh/shell.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/shell.py
+++ b/salt/client/ssh/shell.py
@@ -4,7 +4,6 @@ Manage transport commands via ssh
# Import python libs
import os
-import json
import time
import subprocess
@@ -103,6 +102,26 @@ class Shell(... | Add ssh-copy-id routines to shell | py |
diff --git a/udiskie/tray.py b/udiskie/tray.py
index <HASH>..<HASH> 100644
--- a/udiskie/tray.py
+++ b/udiskie/tray.py
@@ -215,6 +215,7 @@ class UdiskieMenu(object):
if device.is_mounted:
append('browse')
append('unmount')
+ label = device.mount_paths[0]
... | Make label show up correctly in tray again Line that was dropped during refactoring. | py |
diff --git a/rosapi/api.py b/rosapi/api.py
index <HASH>..<HASH> 100644
--- a/rosapi/api.py
+++ b/rosapi/api.py
@@ -16,7 +16,7 @@ class RouterOsApi:
pass
- def talk( self, lvl, args = {} ):
+ def talk( self, cmd, args = {}, cbk = None ):
pass | added generic method with callback may be used for 'interactive' commands eg. ping | py |
diff --git a/microservices/http/renderers.py b/microservices/http/renderers.py
index <HASH>..<HASH> 100644
--- a/microservices/http/renderers.py
+++ b/microservices/http/renderers.py
@@ -106,7 +106,7 @@ class MicroserviceJSONRenderer(JSONRenderer, MicroserviceRendererMixin):
class MicroserviceBrowsableAPIRenderer(... | increase max_length for browser renderer | py |
diff --git a/yamcs-client/yamcs/tmtc/model.py b/yamcs-client/yamcs/tmtc/model.py
index <HASH>..<HASH> 100644
--- a/yamcs-client/yamcs/tmtc/model.py
+++ b/yamcs-client/yamcs/tmtc/model.py
@@ -102,7 +102,8 @@ class CommandHistory(object):
@property
def comment(self):
"""Optional user comment attached w... | Support both 'comment' and 'Comment' | py |
diff --git a/limpyd/model.py b/limpyd/model.py
index <HASH>..<HASH> 100644
--- a/limpyd/model.py
+++ b/limpyd/model.py
@@ -69,7 +69,7 @@ class RedisModel(RedisProxyCommand):
newattr.name = attr.name
newattr._parent_class = attr._parent_class
newattr._instance = self
- n... | Bug when a field is not cacheable but the model is | py |
diff --git a/luminoso_api/upload.py b/luminoso_api/upload.py
index <HASH>..<HASH> 100644
--- a/luminoso_api/upload.py
+++ b/luminoso_api/upload.py
@@ -53,7 +53,7 @@ def upload_stream(stream, server, account, projname, reader_dict,
final_job_id = project.post('docs/calculate', width=4)
project.wait_for... | upload_file gets a default empty reader_dict | py |
diff --git a/jsonschema/validators.py b/jsonschema/validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/validators.py
+++ b/jsonschema/validators.py
@@ -264,7 +264,7 @@ class RefResolver(object):
"""
Construct a resolver from a JSON schema object.
- :argument schema schema: the referrin... | Fix a non-type in the docs. | py |
diff --git a/findspark.py b/findspark.py
index <HASH>..<HASH> 100644
--- a/findspark.py
+++ b/findspark.py
@@ -170,5 +170,5 @@ def add_jars(jars):
if isinstance(jars,str):
jars = [jars]
- os.environ["PYSPARK_SUBMIT_ARGS"] = " --jars "+ ",".join(packages) +" pyspark-shell"
+ os.environ["PYSPARK... | packages --> jars in add_jars | py |
diff --git a/_pydevd_bundle/pydevd_constants.py b/_pydevd_bundle/pydevd_constants.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_constants.py
+++ b/_pydevd_bundle/pydevd_constants.py
@@ -96,7 +96,7 @@ USE_LIB_COPY = SUPPORT_GEVENT and \
(IS_PY3K and sys.version_info[1] >= 3))
-INTERACTI... | Matplotlib interactive mode doesn't work (PY-<I>) Check gui availability with environment variable on Linux (cherry picked from commit <I>f<I>) | py |
diff --git a/tests/plugins/test_redmine.py b/tests/plugins/test_redmine.py
index <HASH>..<HASH> 100644
--- a/tests/plugins/test_redmine.py
+++ b/tests/plugins/test_redmine.py
@@ -27,10 +27,10 @@ login = 4731
# Tests
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-def test_redmine_a... | Disable test for the redmine plugin Works fine when run locally, there is no output and no error messages when run in Travis. No more time to debug, disabling. | py |
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index <HASH>..<HASH> 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -246,7 +246,7 @@ class EditCommand(Command):
bodytext = translate(bodytext, ui=ui, dbm=ui.dbman)
#write stuff to tempfile
- tf ... | Prefix tmpfile; convenient for automatic change of editor modes | py |
diff --git a/subliminal/subtitle.py b/subliminal/subtitle.py
index <HASH>..<HASH> 100644
--- a/subliminal/subtitle.py
+++ b/subliminal/subtitle.py
@@ -90,7 +90,7 @@ def get_subtitle_path(video_path, language=None):
if language is not None:
try:
return subtitle_path + '.%s.%s' % (language.alph... | Fix wrong error catched for babelfish <I> | py |
diff --git a/toot/console.py b/toot/console.py
index <HASH>..<HASH> 100644
--- a/toot/console.py
+++ b/toot/console.py
@@ -201,7 +201,7 @@ TUI_COMMANDS = [
name="tui",
description="Launches the toot terminal user interface",
arguments=[],
- require_auth=False,
+ require_auth=Tru... | Require auth for toot tui | py |
diff --git a/pymc3/tests/test_distributions_random.py b/pymc3/tests/test_distributions_random.py
index <HASH>..<HASH> 100644
--- a/pymc3/tests/test_distributions_random.py
+++ b/pymc3/tests/test_distributions_random.py
@@ -506,7 +506,7 @@ class TestScalarParameterSamples(SeededTest):
def test_discrete_uniform(se... | testing DiscreteUniform with inclusive upper bound | py |
diff --git a/tools/pyboard.py b/tools/pyboard.py
index <HASH>..<HASH> 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -179,7 +179,9 @@ class ProcessPtyToTerminal:
self.close()
sys.exit(1)
pty = m.group()
- self.ser = serial.Serial(pty, interCharTimeout=1)
+ # rts... | tools/pyboard: ProcessPtyToTerminal: Add workaround for PySerial bug. When working with a "virtual" port, like PTY. The issue described in <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -121,6 +121,8 @@ class RunTests(Command):
except ImportError:
print "Selenium not installed. Skipping tests."
# No Selenium
+ # TODO Faster tests.
+ selenium_installed = False
... | refs #<I>: I really want to get some things passing on travis. | py |
diff --git a/discord/channel.py b/discord/channel.py
index <HASH>..<HASH> 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -2225,6 +2225,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
'name': name,
'auto_archive_duration': auto_archive_duration or self.default_auto_arc... | Explicitly specify public threads when creating them in forums The endpoint seems to fail otherwise | py |
diff --git a/pyxmpp/stanza.py b/pyxmpp/stanza.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/stanza.py
+++ b/pyxmpp/stanza.py
@@ -218,7 +218,7 @@ class Stanza:
return self._error
n=self.xpath_eval(u"ns:error")
if not n:
- raise ProtocolError, (None, "This stanza contains no error"... | - include serialized stanza in the 'stanza has no error' exception | py |
diff --git a/huey/djhuey/management/commands/run_huey.py b/huey/djhuey/management/commands/run_huey.py
index <HASH>..<HASH> 100644
--- a/huey/djhuey/management/commands/run_huey.py
+++ b/huey/djhuey/management/commands/run_huey.py
@@ -4,7 +4,10 @@ from optparse import make_option
from django.conf import settings
fr... | Django <I> warning: Use importlib instead of django.db.models.loading Removes this warning in django <I>: ``` RemovedInDjango<I>Warning: The utilities in django.db.models.loading are deprecated in favor of the new application loading system. ``` | py |
diff --git a/hmmlearn/hmm.py b/hmmlearn/hmm.py
index <HASH>..<HASH> 100644
--- a/hmmlearn/hmm.py
+++ b/hmmlearn/hmm.py
@@ -215,12 +215,9 @@ class GaussianHMM(_BaseHMM):
X, self.means_, self._covars_, self.covariance_type)
def _generate_sample_from_state(self, state, random_state=None):
- if s... | Remove sample_gaussian from GaussianHMM Deprecated upstream. Slightly slower due to calling covars_ property, so perhaps the _get_covars should be cached | py |
diff --git a/atoma/simple.py b/atoma/simple.py
index <HASH>..<HASH> 100644
--- a/atoma/simple.py
+++ b/atoma/simple.py
@@ -57,7 +57,7 @@ def _adapt_atom_feed(atom_feed: atom.AtomFeed) -> Feed:
article_link = None
attachments = list()
for candidate_link in entry.links:
- if candidat... | Select Atom links with no `rel` as entry link in simple API | py |
diff --git a/skyfield/timelib.py b/skyfield/timelib.py
index <HASH>..<HASH> 100644
--- a/skyfield/timelib.py
+++ b/skyfield/timelib.py
@@ -342,7 +342,7 @@ def now():
return JulianDate(utc=datetime.utcnow().replace(tzinfo=utc))
def julian_day(year, month=1, day=1):
- """Given a proleptic Gregorian calendar da... | Tweak two timelib docstrings. | py |
diff --git a/cycy/repl.py b/cycy/repl.py
index <HASH>..<HASH> 100644
--- a/cycy/repl.py
+++ b/cycy/repl.py
@@ -30,11 +30,14 @@ class REPL(object):
self.stdout.write(self.PROMPT)
repl_input = self.stdin.readline()
+ if not repl_input:
+ return
if repl_in... | Being able to exit would be nice. | py |
diff --git a/etc/toolbox.py b/etc/toolbox.py
index <HASH>..<HASH> 100644
--- a/etc/toolbox.py
+++ b/etc/toolbox.py
@@ -1,5 +1,11 @@
from django.core.exceptions import ImproperlyConfigured
-from django.db.models import get_model
+
+try:
+ from django.apps import apps
+ apps_get_model = apps.get_model
+except Impo... | Suppressed Django <I> warning. | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -1425,12 +1425,13 @@ class Instrument(object):
start of iteration, if None uses first data date.
list-like collection also accepted
end : date... | Fixed bug when setting dates in a list | py |
diff --git a/spark_parser/spark.py b/spark_parser/spark.py
index <HASH>..<HASH> 100644
--- a/spark_parser/spark.py
+++ b/spark_parser/spark.py
@@ -256,6 +256,9 @@ class GenericParser(object):
"""Remove a grammar rules from _self.rules_, _self.rule2func_,
and _self.rule2name_
"""
+ ... | remove_rules() improvements... * Allow comments in rules * Strip blank lines in rules * Remove rule from profiling | py |
diff --git a/redis/asyncio/lock.py b/redis/asyncio/lock.py
index <HASH>..<HASH> 100644
--- a/redis/asyncio/lock.py
+++ b/redis/asyncio/lock.py
@@ -3,7 +3,7 @@ import sys
import threading
import uuid
from types import SimpleNamespace
-from typing import TYPE_CHECKING, Awaitable, NoReturn, Optional, Union
+from typing... | Fix incorrect return annotation in asyncio.lock (#<I>) NoReturn should be used only when the function never returns. In this case, the awaitable returns None if releasing the lock succeeds, so `Awaitable[None]` is right. Noticed this while reviewing python/typeshed#<I> | py |
diff --git a/djstripe/models.py b/djstripe/models.py
index <HASH>..<HASH> 100644
--- a/djstripe/models.py
+++ b/djstripe/models.py
@@ -65,6 +65,7 @@ class StripeObject(TimeStampedModel):
# This must be defined in descendants of this model/mixin
# e.g. "Event", "Charge", "Customer", etc.
stripe_api_name =... | move default objects definition into the StripeObject model and out of the child models. objects attribute can still be overriden in child models and this is done in a few cases | py |
diff --git a/quantecon/mc_tools.py b/quantecon/mc_tools.py
index <HASH>..<HASH> 100644
--- a/quantecon/mc_tools.py
+++ b/quantecon/mc_tools.py
@@ -343,10 +343,6 @@ mc_sample_path.__doc__ = _sample_path_docstr.format(p_arg="""
P : array_like(float, ndim=2)
A Markov transition matrix.
""")
-mc_sample_path_numpy.__... | `mc_sample_path_numpy.__doc__` deleted | py |
diff --git a/pandas/io/tests/test_data.py b/pandas/io/tests/test_data.py
index <HASH>..<HASH> 100644
--- a/pandas/io/tests/test_data.py
+++ b/pandas/io/tests/test_data.py
@@ -445,7 +445,10 @@ class TestFred(tm.TestCase):
end = datetime(2013, 1, 27)
received = web.DataReader("GDP", "fred", start, end... | NETWORK: change failing FRED test | py |
diff --git a/tests/test_commands.py b/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -72,6 +72,17 @@ def test_commit_retry_works(mocker):
assert not os.path.isfile(temp_file)
+def test_commit_when_nothing_to_commit(mocker):
+ is_staging_clean_... | test(commands/commit): test aborting commit when there is nothing to commit #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ if py_version <= (2, 6):
setup(
name='rewind',
- version='0.1.7',
+ version='0.2.0',
author='Jens Rantil',
author_email='jens.rantil@gmail.com',
license='GNU AGPL, version 3', | Bumping version to <I> The reason for bumping minor version is because I've changed the wire format for incoming events. | py |
diff --git a/sirmordred/sirmordred.py b/sirmordred/sirmordred.py
index <HASH>..<HASH> 100755
--- a/sirmordred/sirmordred.py
+++ b/sirmordred/sirmordred.py
@@ -249,7 +249,8 @@ class SirMordred:
if big_delay > 0:
when = datetime.now() + timedelta(seconds=big_delay)
when_str ... | [sirmordred] Improve log messages related to task projects | py |
diff --git a/pyethereum/apiserver.py b/pyethereum/apiserver.py
index <HASH>..<HASH> 100644
--- a/pyethereum/apiserver.py
+++ b/pyethereum/apiserver.py
@@ -102,7 +102,7 @@ def version():
def make_blocks_response(blocks):
res = []
for b in blocks:
- h = b.to_dict()
+ h = b.to_dict(with_uncles=Tru... | add: uncle hashes in blocks from api | py |
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/__init__.py
+++ b/src/python/dxpy/__init__.py
@@ -114,7 +114,7 @@ environment variables:
# except:
# pass
-import os, json, requests, time
+import os, json, requests, time, mmap
from request... | [PTFM-<I>] When retrying an upload with input that is an mmap buffer, seek to the beginning | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -24,10 +24,8 @@ version = '.'.join([str(num) for num in numversion])
install_requires = ['logilab-common >= 0.53.0', 'logilab-astng >= 0.24.3']
license = 'GPL'
-copyright = 'Logilab S.A.'
descripti... | [pkginfo] update project's url to pylint.org and kill deprecated ftp/copyright | py |
diff --git a/src/rasterstats/main.py b/src/rasterstats/main.py
index <HASH>..<HASH> 100644
--- a/src/rasterstats/main.py
+++ b/src/rasterstats/main.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
+from distutils.version import LooseVersion
from aff... | Updated method calls for numpy <I> | py |
diff --git a/gnupg/_util.py b/gnupg/_util.py
index <HASH>..<HASH> 100644
--- a/gnupg/_util.py
+++ b/gnupg/_util.py
@@ -282,7 +282,7 @@ def _find_binary(binary=None):
try:
assert os.path.isabs(found), "Path to gpg binary not absolute"
- assert not os.path.islink(found), "Path to gpg binary is syml... | allow symlinks for the binary and resolve them | py |
diff --git a/great_expectations/dataset/dataset.py b/great_expectations/dataset/dataset.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/dataset.py
+++ b/great_expectations/dataset/dataset.py
@@ -1,3 +1,5 @@
+from future import division
+
import inspect
import sys
from six import PY3, string_types | Bring division from future for python2 compatibility | py |
diff --git a/sentry/web/views.py b/sentry/web/views.py
index <HASH>..<HASH> 100644
--- a/sentry/web/views.py
+++ b/sentry/web/views.py
@@ -120,7 +120,8 @@ def search(request):
try:
message = Message.objects.get(message_id=query)
except Message.DoesNotExist:
- pa... | Handle case when a query is performed on a message_id which is not found | py |
diff --git a/examples/altimet01_example.py b/examples/altimet01_example.py
index <HASH>..<HASH> 100755
--- a/examples/altimet01_example.py
+++ b/examples/altimet01_example.py
@@ -34,13 +34,14 @@ cfg = config.Config(
],
)
cfg.initialize()
-
gauge = cfg.get_device("altimet")
time.sleep(0.5)
#### Data Loggin... | route to sensor is activated before reading from it. | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -260,6 +260,7 @@ class ProfileManager(object):
for p in self.profiles.values():
p.load_balancing_policy.on_remove(host)
+PROFILE_DEFAULT = None
class C... | quick change to define the default profile key | py |
diff --git a/pyverilog/vparser/parser.py b/pyverilog/vparser/parser.py
index <HASH>..<HASH> 100644
--- a/pyverilog/vparser/parser.py
+++ b/pyverilog/vparser/parser.py
@@ -711,7 +711,7 @@ class VerilogParser(PLYParser):
p.set_lineno(0, p.lineno(1))
def p_integername_init(self, p):
- 'integername: ... | add parsing rule, integer declaration and initialization r1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -54,8 +54,8 @@ try:
creation."""
def run(self):
- """Do nothing so the command intentionally fails."""
- pass
+ """Intentionally terminating the process with an error code."... | Issue <I> fix meta for latest pip (#<I>) * Making the command to error intentionally * Bumping version | py |
diff --git a/feedjack/fjupdate.py b/feedjack/fjupdate.py
index <HASH>..<HASH> 100644
--- a/feedjack/fjupdate.py
+++ b/feedjack/fjupdate.py
@@ -319,7 +319,7 @@ def bulk_update(optz):
time_delta = timedelta(0, check_interval)
time_delta_chk = (timezone.now() - time_delta) - feed.last_checked
if time_delta_chk... | fjupdate: reporting skipped checks with EXTRA level | py |
diff --git a/test/commands/extended/replay_bundle_test.py b/test/commands/extended/replay_bundle_test.py
index <HASH>..<HASH> 100644
--- a/test/commands/extended/replay_bundle_test.py
+++ b/test/commands/extended/replay_bundle_test.py
@@ -593,10 +593,20 @@ class ReplayBundleCommandTestCase(TestCase):
})
s... | Ensures that the correct trytes are sent to the ``sendTrytes`` command to replay the bundle. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -90,7 +90,7 @@ html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the... | fix(docs): address warning | py |
diff --git a/superset/db_engine_specs/bigquery.py b/superset/db_engine_specs/bigquery.py
index <HASH>..<HASH> 100644
--- a/superset/db_engine_specs/bigquery.py
+++ b/superset/db_engine_specs/bigquery.py
@@ -25,6 +25,21 @@ from sqlalchemy import literal_column
from superset.db_engine_specs.base import BaseEngineSpec
... | Add improved typed casting to BigQuery (#<I>) | py |
diff --git a/hydpy/cythons/modelutils.py b/hydpy/cythons/modelutils.py
index <HASH>..<HASH> 100644
--- a/hydpy/cythons/modelutils.py
+++ b/hydpy/cythons/modelutils.py
@@ -684,7 +684,8 @@ class Cythonizer:
'modelutils.py',
'hland_v1.py']
"""
- sourcefiles = set()
+ basepath = h... | Fix property `test_pysourcefiles` of class `Cythonizer` of module `modelutils` for the case that the `hydpy` package is part of a (conda) environment called `hydpy`. | py |
diff --git a/engine/handler.py b/engine/handler.py
index <HASH>..<HASH> 100644
--- a/engine/handler.py
+++ b/engine/handler.py
@@ -42,7 +42,7 @@ class Handler(tornado.web.RequestHandler, dpEngine):
@tornado.concurrent.run_on_executor
def route(self, method, path):
module_path = '%s.%s' % (self.prefix... | Support unicode in url. | py |
diff --git a/telemetry/telemetry/core/tab_unittest.py b/telemetry/telemetry/core/tab_unittest.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/tab_unittest.py
+++ b/telemetry/telemetry/core/tab_unittest.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import logging
import os
+import time
from telemet... | Remove dwm function because it is going away in windows <I> I am guessing that this does nothing perf-wise, certainly resize wise I don't observe any improvement wrt to not having it. On the even more speculative angle (pun intended) it might be interfering with flip_ex present experiments. TBR=jam TEST=none BUG=<I>... | py |
diff --git a/napd/nap.py b/napd/nap.py
index <HASH>..<HASH> 100644
--- a/napd/nap.py
+++ b/napd/nap.py
@@ -23,6 +23,7 @@ class Nap:
# Create database connection
try:
self._con_pg = psycopg2.connect("host='localhost' dbname='nap' user='napd' password='dpan'")
+ self._con_pg.set_... | Use autocommit _execute, our own function to execute SQL statements always performed commit for us. We are now switching to using autocommit so it's possible to perform a BEGIN / COMMIT to have longer running transactions. | py |
diff --git a/xclim/utils.py b/xclim/utils.py
index <HASH>..<HASH> 100644
--- a/xclim/utils.py
+++ b/xclim/utils.py
@@ -10,7 +10,7 @@ import datetime as dt
import functools
import re
import warnings
-from collections import defaultdict
+from collections import defaultdict, OrderedDict
from inspect import signature
... | trying to fix test suite for <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ def read(fname):
setup(
name="Pebble",
- version="2.4.3",
+ version="2.4.4",
author="Matteo Cafasso",
author_email="noxdafox@gmail.com",
description=("Threading and multiprocessing e... | release <I>: code cleanup and reorganisation, improved tests | py |
diff --git a/openquake/commands/restore.py b/openquake/commands/restore.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/restore.py
+++ b/openquake/commands/restore.py
@@ -19,6 +19,7 @@
import re
import sys
import time
+import getpass
import os.path
import zipfile
import sqlite3
@@ -57,7 +58,8 @@ def resto... | Update the user during the oq restore phase | py |
diff --git a/freight_forwarder/utils/utils.py b/freight_forwarder/utils/utils.py
index <HASH>..<HASH> 100644
--- a/freight_forwarder/utils/utils.py
+++ b/freight_forwarder/utils/utils.py
@@ -351,12 +351,14 @@ def _display_error(normalized_data, stream):
# TODO: need to revisit this later.
error = normalized_d... | Removed Excess Logic * Removed excess logic from `_display_progress` as a default prompt is provided | py |
diff --git a/consul/std.py b/consul/std.py
index <HASH>..<HASH> 100644
--- a/consul/std.py
+++ b/consul/std.py
@@ -19,6 +19,7 @@ class HTTPClient(object):
self.session = requests.session()
def response(self, response):
+ response.encoding = 'utf-8'
return base.Response(
resp... | force to use UTF-8 encoding for the response | py |
diff --git a/shakedown/dcos/__init__.py b/shakedown/dcos/__init__.py
index <HASH>..<HASH> 100644
--- a/shakedown/dcos/__init__.py
+++ b/shakedown/dcos/__init__.py
@@ -1,6 +1,7 @@
import os
import dcos
import dcos.cluster
+import sys
import shakedown
@@ -9,7 +10,8 @@ def attach_cluster(url):
"""Attach to an... | Don't output exception if trying to attach except silently and continue attachment attempts if a previously set-up cluster is no longer reachable. | py |
diff --git a/gui/test_riab.py b/gui/test_riab.py
index <HASH>..<HASH> 100644
--- a/gui/test_riab.py
+++ b/gui/test_riab.py
@@ -29,6 +29,7 @@ from qgisinterface import QgisInterface
from PyQt4.QtGui import QWidget
from utilities_test import getQgisTestApp
from storage.utilities import ugettext as _
+from impact_funct... | Updated test to characterise current issue where os.environ['LANG'] is providing system rather than process state in ugettext | py |
diff --git a/src/configupdater/configupdater.py b/src/configupdater/configupdater.py
index <HASH>..<HASH> 100644
--- a/src/configupdater/configupdater.py
+++ b/src/configupdater/configupdater.py
@@ -1153,11 +1153,7 @@ class ConfigUpdater(Container[ConfigContent]):
...
@overload
- def get(self, sectio... | Fix typecheck for fallback in get | py |
diff --git a/plugins/qtaste/Testbeds/ControlScripts/JavaGUI.py b/plugins/qtaste/Testbeds/ControlScripts/JavaGUI.py
index <HASH>..<HASH> 100644
--- a/plugins/qtaste/Testbeds/ControlScripts/JavaGUI.py
+++ b/plugins/qtaste/Testbeds/ControlScripts/JavaGUI.py
@@ -6,7 +6,7 @@ ControlScript([
mainClassOrJar="com.qspin.qt... | [PLUGIN] change absolute path to relative one | py |
diff --git a/src/automate/services/textui.py b/src/automate/services/textui.py
index <HASH>..<HASH> 100644
--- a/src/automate/services/textui.py
+++ b/src/automate/services/textui.py
@@ -25,11 +25,11 @@ from automate.common import ExitException
from automate.service import AbstractUserService
helpstr = """
- Automa... | Update ipython shell help text | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.