diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scripts/import.py b/scripts/import.py
index <HASH>..<HASH> 100755
--- a/scripts/import.py
+++ b/scripts/import.py
@@ -4447,12 +4447,12 @@ if do_task('asiagospectra'):
if is_number(name[:4]):
name = 'SN' + name
name = add_event(name)
- if... | Fixed source in asiago spectra block. | py |
diff --git a/src/sos/hosts.py b/src/sos/hosts.py
index <HASH>..<HASH> 100755
--- a/src/sos/hosts.py
+++ b/src/sos/hosts.py
@@ -541,10 +541,10 @@ class RemoteHost:
continue
elif isinstance(task_vars[var], str):
task_vars[var] = self._map_var(task_vars[var])
- ... | Reduce two messages from info to debug | py |
diff --git a/haffmpeg/sensor.py b/haffmpeg/sensor.py
index <HASH>..<HASH> 100644
--- a/haffmpeg/sensor.py
+++ b/haffmpeg/sensor.py
@@ -136,10 +136,8 @@ class SensorMotion(HAFFmpegWorker):
"-an",
"-filter:v",
"select=gt(scene\\,{0})".format(self._changes / 100),
- "-hash... | use framemd5 for older ffmpeg support | py |
diff --git a/src/ossos/core/ossos/__version__.py b/src/ossos/core/ossos/__version__.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/ossos/__version__.py
+++ b/src/ossos/core/ossos/__version__.py
@@ -1 +1 @@
-version = "0.7.4b"
+version = "0.8.0" | minor version push as we move to mp_ephem as external package | py |
diff --git a/pyang/statements.py b/pyang/statements.py
index <HASH>..<HASH> 100644
--- a/pyang/statements.py
+++ b/pyang/statements.py
@@ -3021,7 +3021,7 @@ def print_tree(stmt, substmts=True, i_children=True, indent=0):
def mk_path_str(s, with_prefixes=False):
"""Returns the XPath path of the node"""
if s.k... | mk_path_str: respect with_prefixes for choice/case statements | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ setup(
extras_require={
'dev': [
'coverage',
- 'flake8',
+ 'flake8<3.8',
'Sphinx',
'tox',
'twine', | Constrain flake8 to <<I> Version <I> shows several errors like this that don't make sense: ./commands.py:<I>:<I>: F<I> undefined name 'bash' It's saying a quoted string is an undefined name ... ? All these errors occur in function annotations. | py |
diff --git a/gnotty/client.py b/gnotty/client.py
index <HASH>..<HASH> 100644
--- a/gnotty/client.py
+++ b/gnotty/client.py
@@ -22,7 +22,8 @@ class BaseIRCClient(SimpleIRCClient, object):
self.connect(self.host, self.port, self.nickname, password=password)
def _dispatcher(self, connection, event):
- ... | Fix encoding error in event logging. | py |
diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py
index <HASH>..<HASH> 100644
--- a/telebot/async_telebot.py
+++ b/telebot/async_telebot.py
@@ -322,7 +322,7 @@ class AsyncTeleBot:
logger.error("You are passing more data than the handler needs. Check your handler: {}".form... | F###, forgot to put await | py |
diff --git a/jf_agent/main.py b/jf_agent/main.py
index <HASH>..<HASH> 100644
--- a/jf_agent/main.py
+++ b/jf_agent/main.py
@@ -6,6 +6,7 @@ import urllib3
import yaml
import dateparser
import pytz
+from types import GeneratorType
from datetime import datetime
from stashy.client import Stash
from jf_agent.github_cl... | fix worklog handling (#<I>) | py |
diff --git a/scuba/dockerutil.py b/scuba/dockerutil.py
index <HASH>..<HASH> 100644
--- a/scuba/dockerutil.py
+++ b/scuba/dockerutil.py
@@ -9,15 +9,15 @@ def get_image_command(image):
'''Gets the default command for an image'''
args = ['docker', 'inspect', '--type', 'image', image]
try:
- p = subpr... | scuba: Include docker stderr in exception when inspect fails | py |
diff --git a/src/ossos/core/setup.py b/src/ossos/core/setup.py
index <HASH>..<HASH> 100644
--- a/src/ossos/core/setup.py
+++ b/src/ossos/core/setup.py
@@ -33,7 +33,7 @@ if sys.version_info[0] > 2:
# continue
# scripts.append(os.path.join(script_dir, script))
-console_scripts = [ 'mkpsf = ossos.pipe... | Add update and build to consol_scripts build | py |
diff --git a/master/buildbot/test/integration/test_integration_secrets_with_vault.py b/master/buildbot/test/integration/test_integration_secrets_with_vault.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_integration_secrets_with_vault.py
+++ b/master/buildbot/test/integration/test_integration... | fix vault integration test to work on macos echo -n is not posix. so it will print "-n <passwd" on macos, breaking the test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,10 +67,10 @@ if __name__ == "__main__":
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Lan... | python versions Removed support for <I> and added support for <I>. | py |
diff --git a/impact_functions/core.py b/impact_functions/core.py
index <HASH>..<HASH> 100644
--- a/impact_functions/core.py
+++ b/impact_functions/core.py
@@ -6,15 +6,12 @@ To register the plugin, the module must be imported by the Python process
using it.
"""
-from impact_functions.utilities import ColorMapEntry
-... | Made single helper function for rephrasing the question | py |
diff --git a/rosetta/views.py b/rosetta/views.py
index <HASH>..<HASH> 100644
--- a/rosetta/views.py
+++ b/rosetta/views.py
@@ -198,7 +198,6 @@ def home(request):
else:
paginator = Paginator([e for e in rosetta_i18n_pofile if not e.obsolete], rosetta_settings.MESSAGES_PER_PAGE)
- #... | Removed a comment that became obsolete with recent developments. The local scope is no longer used to build the template context. It is now explicitely built. | py |
diff --git a/libcomxml/core/__init__.py b/libcomxml/core/__init__.py
index <HASH>..<HASH> 100644
--- a/libcomxml/core/__init__.py
+++ b/libcomxml/core/__init__.py
@@ -111,7 +111,7 @@ class Model(object):
if not member.startswith('_'):
s_member = getattr(self, member)
if i... | FIX Allow tags with the same name along the model | py |
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py
index <HASH>..<HASH> 100644
--- a/salt/returners/local_cache.py
+++ b/salt/returners/local_cache.py
@@ -384,6 +384,9 @@ def clean_old_jobs():
for top in os.listdir(jid_root):
t_path = os.path.join(jid_root, top)
+ ... | Make sure the path we're removing is present first - avoid an OSError (#<I>) * Make sure the path we're removing is present first - avoid an OSError * Make check for t_path more efficient * whitespace | py |
diff --git a/contrib/aws/gen-json.py b/contrib/aws/gen-json.py
index <HASH>..<HASH> 100755
--- a/contrib/aws/gen-json.py
+++ b/contrib/aws/gen-json.py
@@ -108,9 +108,6 @@ data['coreos']['units'] = new_units + data['coreos']['units']
header = ["#cloud-config", "---"]
dump = yaml.dump(data, default_flow_style=False)
... | ref(contrib/aws): remove disk replacements that were forgotten in #<I> | py |
diff --git a/tests/test_plot.py b/tests/test_plot.py
index <HASH>..<HASH> 100644
--- a/tests/test_plot.py
+++ b/tests/test_plot.py
@@ -1,4 +1,7 @@
-class PlotTester:
+from svg.charts.plot import Plot
+
+
+class TestPlot:
def test_index_error_2010_04(self):
"""
Reported by Jean Schurger
@@ -8,7 +11,11 @@ class P... | Added test capturing failing inline styles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,6 @@ class bdist_rpm(setuptools.command.bdist_rpm.bdist_rpm):
setuptools.setup(name=PACKAGE,
version=VERSION,
- include_package_data=True,
cmdclass=dict(bdist_rp... | fix: do not repeat include_package_data=True in setup.{py,cfg} Remove include_package_data=True in setup.py not to repeat include_package_data=True in both setup.py and setup.cfg. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,5 +9,5 @@ setup(
long_description=open('README.rst').read(),
packages=find_packages(),
zip_safe=False,
- install_requires=['distribute', 'Django>=1.2']
+ install_requires=['distribute']
) | Update setup.py Removed Django requirement | py |
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index <HASH>..<HASH> 100644
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -21,7 +21,7 @@ import setuptools
from pkg_resources import (
CHECKOUT_DIST, Distribution, BINARY_DIST, normalize_path, SOURCE_DIST,
Environ... | Suppress invalid versions when parsing in package_index. They will still be allowed for now as long as DeprecationWarnings aren't treated as errors. | py |
diff --git a/zipline/utils/test_utils.py b/zipline/utils/test_utils.py
index <HASH>..<HASH> 100644
--- a/zipline/utils/test_utils.py
+++ b/zipline/utils/test_utils.py
@@ -15,6 +15,7 @@ def setup_logger(test, path='/var/log/zipline/zipline.log'):
def teardown_logger(test):
test.log_handler.pop_application()
+ ... | Close test log handler at end of test to fix file descriptor leak | py |
diff --git a/phypno/ioeeg/egimff.py b/phypno/ioeeg/egimff.py
index <HASH>..<HASH> 100644
--- a/phypno/ioeeg/egimff.py
+++ b/phypno/ioeeg/egimff.py
@@ -295,14 +295,21 @@ def parse_xml(xml_file):
return xml2list(root)
-# remove namespace
-ns = lambda s: '}'.join(s.split('}')[1:])
+def ns(s):
+ """remove names... | improve reading xml when there is no namespace | py |
diff --git a/zipline/finance/metrics/tracker.py b/zipline/finance/metrics/tracker.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/metrics/tracker.py
+++ b/zipline/finance/metrics/tracker.py
@@ -103,14 +103,14 @@ class MetricsTracker(object):
)
if emission_rate == 'minute':
- def prog... | MAINT: break refcycle in metrics tracker | py |
diff --git a/anyconfig/api.py b/anyconfig/api.py
index <HASH>..<HASH> 100644
--- a/anyconfig/api.py
+++ b/anyconfig/api.py
@@ -113,9 +113,9 @@ def load(path_specs, forced_type=None, merge=MS_DICTS_AND_LISTS):
should and how be checked then instead ?
"""
try:
- if os.path.exists(path_specs):
+ ... | Process cases if path_specs was given as a glob pattern and IOError raised in anyconfig.api.load | py |
diff --git a/tmpo/__init__.py b/tmpo/__init__.py
index <HASH>..<HASH> 100644
--- a/tmpo/__init__.py
+++ b/tmpo/__init__.py
@@ -1,5 +1,5 @@
__title__ = "tmpo"
-__version__ = "0.2.8"
+__version__ = "0.2.9"
__build__ = 0x000100
__author__ = "Bart Van Der Meerssche"
__license__ = "MIT"
@@ -396,7 +396,7 @@ class Session... | typo in tz_localize | py |
diff --git a/ontobio/ontol.py b/ontobio/ontol.py
index <HASH>..<HASH> 100644
--- a/ontobio/ontol.py
+++ b/ontobio/ontol.py
@@ -47,7 +47,7 @@ class Ontology():
self.graph = graph
if self.graph is None:
self.graph = nx.MultiDiGraph()
- logging.info('Graph initialized, nodes={}'.forma... | Change log level from info to debug | py |
diff --git a/gwpy/timeseries/io/cache.py b/gwpy/timeseries/io/cache.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/cache.py
+++ b/gwpy/timeseries/io/cache.py
@@ -26,6 +26,8 @@ import warnings
from math import ceil
from multiprocessing import (Process, Queue as ProcessQueue)
+import numpy
+
from glue.lal i... | timeseries.io.cache: acquire memory if needed | py |
diff --git a/prob2020/python/utils.py b/prob2020/python/utils.py
index <HASH>..<HASH> 100644
--- a/prob2020/python/utils.py
+++ b/prob2020/python/utils.py
@@ -303,6 +303,12 @@ def _fix_mutation_df(mutation_df, only_unique=False):
'End_Position', 'Reference_Allele', 'Tumor_Allele']
mutation... | Added log message indicating how many mutations were dropped because of de-duplication | py |
diff --git a/safe/impact_functions/generic/continuous_hazard_population/impact_function.py b/safe/impact_functions/generic/continuous_hazard_population/impact_function.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/generic/continuous_hazard_population/impact_function.py
+++ b/safe/impact_functions/generic/c... | Better docstring for continouse generic IF | 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
@@ -188,7 +188,7 @@ from urlparse import urlparse
from urljr import fetchers
-from openid.consumer.discover import discover as openIDDiscover
+from ... | [project @ Re-name discovery function to make it easier to understand (openid.consumer.consumer.openIDDiscover -> openid.consumer.consumer.discoverURL)] | py |
diff --git a/hug/decorators.py b/hug/decorators.py
index <HASH>..<HASH> 100644
--- a/hug/decorators.py
+++ b/hug/decorators.py
@@ -327,7 +327,7 @@ def call(urls=None, accept=HTTP_METHODS, output=None, examples=(), versions=None
return decorator
-def cli(name=None, version=None, doc=None, transform=None, output... | Change default output for cli commands to print command | py |
diff --git a/ocrmypdf/__main__.py b/ocrmypdf/__main__.py
index <HASH>..<HASH> 100755
--- a/ocrmypdf/__main__.py
+++ b/ocrmypdf/__main__.py
@@ -1432,7 +1432,7 @@ def build_pipeline():
task_render_hocr_page.graphviz(fillcolor='"#00cc66"')
task_render_hocr_page.active_if(options.pdf_renderer == 'hocr')
- ta... | Fix mistake made in converting pipeline; incredibly, all tests pass now | py |
diff --git a/aiomonitor/aiomonitor.py b/aiomonitor/aiomonitor.py
index <HASH>..<HASH> 100644
--- a/aiomonitor/aiomonitor.py
+++ b/aiomonitor/aiomonitor.py
@@ -87,7 +87,7 @@ class Monitor:
sout = client.makefile('w', encoding='utf-8')
sin = client.makefile('r', encoding=... | except OSError in telnet server | py |
diff --git a/manuscript/figs/fig2.py b/manuscript/figs/fig2.py
index <HASH>..<HASH> 100644
--- a/manuscript/figs/fig2.py
+++ b/manuscript/figs/fig2.py
@@ -27,7 +27,7 @@ m = batman.TransitModel(params, t) #initializes model
flux = m.LightCurve(params) #calculates light curve
-m._set_fac(1.0e-4)
+m.set_fac(1.0... | change call from _set_fac to set_fac | py |
diff --git a/wfdb/io/record.py b/wfdb/io/record.py
index <HASH>..<HASH> 100644
--- a/wfdb/io/record.py
+++ b/wfdb/io/record.py
@@ -1024,7 +1024,7 @@ def rdrecord(record_name, sampfrom=0, sampto='end', channels='all',
record.segments[segnum] = rdrecord(
os.path.join(dirname, record.... | load signals as digital for multisegment if requested | py |
diff --git a/bettercache/views.py b/bettercache/views.py
index <HASH>..<HASH> 100644
--- a/bettercache/views.py
+++ b/bettercache/views.py
@@ -13,12 +13,12 @@ class BetterView(CachingMixin):
response, expired = self.get_cache(request)
# send off the celery task if it's expired
if ... | [CMSPERF-<I>] reduced log levels | py |
diff --git a/s4/cli.py b/s4/cli.py
index <HASH>..<HASH> 100644
--- a/s4/cli.py
+++ b/s4/cli.py
@@ -275,7 +275,11 @@ def sync_command(args, config, logger):
logger.info('Syncing %s [%s <=> %s]', name, client_1.get_uri(), client_2.get_uri())
worker.sync(conflict_choice=args.conflicts)
... | Show Stack Trace for exceptions if log level is DEBUG | py |
diff --git a/ansible_runner/interface.py b/ansible_runner/interface.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/interface.py
+++ b/ansible_runner/interface.py
@@ -154,8 +154,8 @@ def run(**kwargs):
Python list object, the playbook will be written to disk and then executed.
inventory (str... | update kwarg documentation for inventory This change updates the description for the inventory kwarg in both run() and run_async() to properly articulate the forms the inventory kwarg will take. | py |
diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py
index <HASH>..<HASH> 100644
--- a/HARK/ConsumptionSaving/ConsIndShockModel.py
+++ b/HARK/ConsumptionSaving/ConsIndShockModel.py
@@ -2850,7 +2850,7 @@ class KinkedRconsumerType(IndShockConsumerType):
'''
... | cleanup applyFlatIncomeTax | py |
diff --git a/raven/processors.py b/raven/processors.py
index <HASH>..<HASH> 100644
--- a/raven/processors.py
+++ b/raven/processors.py
@@ -73,7 +73,13 @@ class SanitizePasswordsProcessor(Processor):
"""
MASK = '*' * 8
FIELDS = frozenset([
- 'password', 'secret', 'passwd', 'authorization', 'api_key... | sanitize sentry_dsn | py |
diff --git a/salt/client.py b/salt/client.py
index <HASH>..<HASH> 100644
--- a/salt/client.py
+++ b/salt/client.py
@@ -750,6 +750,9 @@ class LocalClient(object):
ret[raw['id']] = {'ret': raw['return']}
if 'out' in raw:
ret[raw['id']]['out'] = raw['out']
+ ... | Fixes timeout issue after all messages received. | py |
diff --git a/hearthstone/dbf.py b/hearthstone/dbf.py
index <HASH>..<HASH> 100644
--- a/hearthstone/dbf.py
+++ b/hearthstone/dbf.py
@@ -27,7 +27,7 @@ class Dbf:
for field in element.findall("Field"):
colname = field.attrib["column"]
coltype = self.columns[colname]
- ret[colname] = self._serialize_value(fiel... | dbf: Fix a missed method rename | py |
diff --git a/example/example/settings.py b/example/example/settings.py
index <HASH>..<HASH> 100644
--- a/example/example/settings.py
+++ b/example/example/settings.py
@@ -8,6 +8,8 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
+import django
+
# Build... | Non-sucky testrunner for pre-django<I> | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -13,14 +13,15 @@ class TomlTz(datetime.tzinfo):
self._raw_offset = "+00:00"
else:
self._raw_offset = toml_offset
- self._hours = int(self._raw_offset[:3])
+ self._sign = -1 if self.... | Fix negative partial-hour offsets The sign of the offset needs to be applied after the timedelta is constructed, or else in the case of negative offsets the minutes will be counted in the opposite direction as the hours. | py |
diff --git a/ci/taskcluster/bin/decision.py b/ci/taskcluster/bin/decision.py
index <HASH>..<HASH> 100755
--- a/ci/taskcluster/bin/decision.py
+++ b/ci/taskcluster/bin/decision.py
@@ -72,7 +72,7 @@ def main():
'schedulerId': 'taskcluster-github',
'taskGroupId': decisionTaskId,
... | Bump TC max run time to 8 hours and deadline to 1 day. | py |
diff --git a/salt/pillar/postgres.py b/salt/pillar/postgres.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/postgres.py
+++ b/salt/pillar/postgres.py
@@ -90,7 +90,8 @@ class POSTGRESExtPillar(SqlBaseExtPillar):
conn = psycopg2.connect(host=_options['host'],
user=_options['user... | Corrected custom port handling This pillar was only able to connect to a Postgres DB running on the default port (<I>) This commit extend this to a custom port | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='pyfmg',
- version='0.7.3',
+ version='0.7.4',
packages=find_packages(),
url='https://github.com/p4r4n0y1ng/pyfmg',
license='Apa... | updated version to <I> for python3 compat. | py |
diff --git a/xmantissa/websession.py b/xmantissa/websession.py
index <HASH>..<HASH> 100644
--- a/xmantissa/websession.py
+++ b/xmantissa/websession.py
@@ -60,8 +60,8 @@ class PersistentSession(item.Item):
typeName = 'persistent_session'
schemaVersion = 1
- sessionKey = attributes.bytes(allowNone=False)
-... | These should *really* have indexes since we're querying on them. | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -324,7 +324,7 @@ def install(pkgs, refresh=False, repo='', skip_verify=False, **kwargs):
if len(a) == 0:
a = yb.downgrade(pattern=targ... | Add exception logging to yumpkg failures | py |
diff --git a/cdg.py b/cdg.py
index <HASH>..<HASH> 100644
--- a/cdg.py
+++ b/cdg.py
@@ -36,7 +36,7 @@ class CDG(object):
def construct(self):
# Construct post-dominator tree
self.pd_construct()
- l.debug("Post dominators: \n%s", self._post_dom)
+ # l.debug("Post dominators: \n%s", se... | Added post processing stage to handle those overlapping loop headers in CDG generation. | py |
diff --git a/bika/lims/browser/fields/aranalysesfield.py b/bika/lims/browser/fields/aranalysesfield.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/fields/aranalysesfield.py
+++ b/bika/lims/browser/fields/aranalysesfield.py
@@ -114,7 +114,7 @@ class ARAnalysesField(ObjectField):
# override default... | Calculation interim results with empty values are allowed | py |
diff --git a/hamster/charting.py b/hamster/charting.py
index <HASH>..<HASH> 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -111,6 +111,7 @@ class Integrator(object):
def target(self, value):
"""target next value"""
+ self.targeting = True
self.target_value = value
... | don't do anything on update if we have no target svn path=/trunk/; revision=<I> | py |
diff --git a/safe/impact_functions/inundation/flood_polygon_population/impact_function.py b/safe/impact_functions/inundation/flood_polygon_population/impact_function.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/inundation/flood_polygon_population/impact_function.py
+++ b/safe/impact_functions/inundation/f... | Handle NaN in the Flood Polygon on Population IF. | py |
diff --git a/spyderlib/widgets/projectexplorer.py b/spyderlib/widgets/projectexplorer.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/projectexplorer.py
+++ b/spyderlib/widgets/projectexplorer.py
@@ -230,11 +230,19 @@ class Workspace(object):
def _get_project_paths(self):
"""Return work... | Project explorer: Workspace is now configured with relative paths, so it can be moved from a location to another and still be opened in Spyder | py |
diff --git a/test/test_freeze.py b/test/test_freeze.py
index <HASH>..<HASH> 100644
--- a/test/test_freeze.py
+++ b/test/test_freeze.py
@@ -21,3 +21,6 @@ class FreezeTestCase(unittest.TestCase):
def test_value_to_str3(self):
assert '' == value_to_str(None)
+
+ def test_value_to_str4(self):
+ as... | full coverage for function value_to_str | py |
diff --git a/wsgidav/util.py b/wsgidav/util.py
index <HASH>..<HASH> 100644
--- a/wsgidav/util.py
+++ b/wsgidav/util.py
@@ -1140,7 +1140,8 @@ def guessMimeType(url):
# print "mimetype(%s): %r, %r" % (url, mimetype, _mimeencoding)
if not mimetype:
ext = os.path.splitext(url)[1]
- mimetype = _M... | made mimetype guessing more robust | py |
diff --git a/autolens/commands/pipeline.py b/autolens/commands/pipeline.py
index <HASH>..<HASH> 100644
--- a/autolens/commands/pipeline.py
+++ b/autolens/commands/pipeline.py
@@ -39,8 +39,9 @@ class Pipeline(Base):
print_pipelines()
- def run_pipeline(self, pipeline):
- pipeline.run(self.load_ima... | simplifying pipeline running commnd | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -550,7 +550,7 @@ class Remote(LazyMixin, Iterable):
progress_handler = progress.new_message_handler()
- for line in proc.stderr.readlines():
+ for line in proc.stderr:
... | fix(remote): real-time reading of lines from stderr That way, progress usage will behave as expected. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,13 +4,13 @@ from setuptools import setup, find_packages
setup(
name='ChunkyPipes',
- version='0.2.1b',
+ version='0.2.2',
description='Pipeline design and distribution framework',
license='MIT',
... | Bumped up version, I think the last one did not work | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,6 +58,7 @@ setup(
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
+ 'Programming Langu... | [setup.py] Add python3 to classifiers | py |
diff --git a/pymatgen/io/vasp/inputs.py b/pymatgen/io/vasp/inputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/inputs.py
+++ b/pymatgen/io/vasp/inputs.py
@@ -1552,6 +1552,10 @@ class PotcarSingle(object):
@property
def electron_configuration(self):
+ if not self.nelectrons.is_integer():
+ ... | Fix for POTCARs with non-integer charge | py |
diff --git a/auditlog/management/commands/auditlogflush.py b/auditlog/management/commands/auditlogflush.py
index <HASH>..<HASH> 100644
--- a/auditlog/management/commands/auditlogflush.py
+++ b/auditlog/management/commands/auditlogflush.py
@@ -45,7 +45,7 @@ class Command(BaseCommand):
if answer:
en... | Change auditlogflush management command before_date query filter to apply the filter only on date part of timestamp (#<I>) | py |
diff --git a/phileo/templatetags/phileo_tags.py b/phileo/templatetags/phileo_tags.py
index <HASH>..<HASH> 100644
--- a/phileo/templatetags/phileo_tags.py
+++ b/phileo/templatetags/phileo_tags.py
@@ -27,7 +27,7 @@ class LikesNode(template.Node):
if len(model_list) == 0:
# These need to look like st... | Tidy up some string expansions | py |
diff --git a/liquid_tags/mdx_liquid_tags.py b/liquid_tags/mdx_liquid_tags.py
index <HASH>..<HASH> 100644
--- a/liquid_tags/mdx_liquid_tags.py
+++ b/liquid_tags/mdx_liquid_tags.py
@@ -17,7 +17,7 @@ import os
from functools import wraps
# Define some regular expressions
-LIQUID_TAG = re.compile(r'\{%.*?%\}')
+LIQUID_... | Added MULTILINE support for regular expressions | py |
diff --git a/pydle/connection.py b/pydle/connection.py
index <HASH>..<HASH> 100644
--- a/pydle/connection.py
+++ b/pydle/connection.py
@@ -85,6 +85,26 @@ class Connection:
self.eventloop.register(self.socket.fileno())
self.setup_handlers()
+
+ def upgrade_to_tls(self, tls_verify=False, tls_certif... | Add upgrade to TLS functionality to connection. | py |
diff --git a/broqer/publisher.py b/broqer/publisher.py
index <HASH>..<HASH> 100644
--- a/broqer/publisher.py
+++ b/broqer/publisher.py
@@ -120,6 +120,12 @@ class Publisher:
for s in self._subscriptions:
s.emit(value, who=self)
+ def reset_state(self, value=NONE):
+ """ Resets the state... | added .reset_state to Publisher | py |
diff --git a/glue/iterutils.py b/glue/iterutils.py
index <HASH>..<HASH> 100644
--- a/glue/iterutils.py
+++ b/glue/iterutils.py
@@ -209,31 +209,9 @@ def flatten(sequence, levels = 1):
#
-try:
- any = any
- all = all
-except NameError:
- # These short-circuit, returning as soon as the return value can be
- # determi... | glue.iterutils: remove any(), all() equivalents, require built-ins causes code to require Python >= <I>. the symbols are left in place while I track down the last remaining users of these things and get them updated. | py |
diff --git a/xopen.py b/xopen.py
index <HASH>..<HASH> 100644
--- a/xopen.py
+++ b/xopen.py
@@ -184,13 +184,10 @@ def xopen(filename, mode='r'):
if bz2 is None:
raise ImportError("Cannot open bz2 files: The bz2 module is not available")
if _PY3:
- if 't' in mode:
- return bz2.open(filename, mode)
- else... | On Python 3, prefer bz2.open over bz2.BZ2File bz2.open appeared in Python <I>, but we do not support Python <I>/<I>/<I> in xopen. | py |
diff --git a/src/tests/portpicker_test.py b/src/tests/portpicker_test.py
index <HASH>..<HASH> 100644
--- a/src/tests/portpicker_test.py
+++ b/src/tests/portpicker_test.py
@@ -272,7 +272,7 @@ class PickUnusedPortTest(unittest.TestCase):
self.assertTrue(self.IsUnusedTCPPort(port))
self.a... | Lower the threshold for success on the flaky test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,8 +7,8 @@ from setuptools import (
extras_require = {
'tester': [
- "eth-tester[py-evm]==0.1.0-beta.39",
- "py-geth @ git+ssh://git@github.com/ethereum/py-geth@ad462e7c841ebd9363b318889252e1f7d7c09c56#... | Update py-geth version | py |
diff --git a/LiSE/LiSE/cache.py b/LiSE/LiSE/cache.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/cache.py
+++ b/LiSE/LiSE/cache.py
@@ -486,7 +486,7 @@ class ThingsCache(Cache):
node_contents_cache.store(
character, oldloc, branch, trn, tck,
... | Prevent HistoryError when caching node contents Those contents caches are never really part of a plan, of themselves | py |
diff --git a/openquake/hazardlib/source/rupture.py b/openquake/hazardlib/source/rupture.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/source/rupture.py
+++ b/openquake/hazardlib/source/rupture.py
@@ -73,8 +73,7 @@ class Rupture(object):
surface_nodes source_typology rupture_slip_direction'''.split()
... | Moved the attribute surface_nodes from the rupture to the surface | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,3 +12,6 @@ html_theme_options.update({
'canonical_url_path': 'docs/reference/pdo/',
'tracking_project': 'crate-pdo',
})
+
+site_url = 'https://crate.io/docs/clients/pdo/en/latest/'
+extensions = ... | enabled the generation of a sitemap.xml by adding the url and enabling the extension. | py |
diff --git a/estnltk/syntax/syntax_preprocessing.py b/estnltk/syntax/syntax_preprocessing.py
index <HASH>..<HASH> 100644
--- a/estnltk/syntax/syntax_preprocessing.py
+++ b/estnltk/syntax/syntax_preprocessing.py
@@ -83,8 +83,6 @@ class Cg3Exporter():
line = re.sub('#(\S+ L0)','<\\1>', line) ... | removed hack for the lines that have '$' in the root | py |
diff --git a/chai/expectation.py b/chai/expectation.py
index <HASH>..<HASH> 100644
--- a/chai/expectation.py
+++ b/chai/expectation.py
@@ -4,6 +4,7 @@ Expectations that can set on a stub.
import inspect
from comparators import *
+from exception import *
class ExpectationRule(object):
def __init__(self, *args,... | Moved to use Any Comparator for expecation | py |
diff --git a/janitor/resources/ec2.py b/janitor/resources/ec2.py
index <HASH>..<HASH> 100644
--- a/janitor/resources/ec2.py
+++ b/janitor/resources/ec2.py
@@ -160,6 +160,7 @@ class MarkedForOp(Filter):
def __call__(self, i):
tag = self.data.get('tag', 'maid_status')
op = self.data.get('op', 'stop... | add a skew option to mark for op, ie. so we can stop repeatedly in advance of terminate | py |
diff --git a/lib/devpipeline_core/config/paths.py b/lib/devpipeline_core/config/paths.py
index <HASH>..<HASH> 100644
--- a/lib/devpipeline_core/config/paths.py
+++ b/lib/devpipeline_core/config/paths.py
@@ -18,25 +18,3 @@ def _make_path(base_dir, *endings):
if not base_dir:
base_dir = _get_config_dir()
... | Work on #4 - Migrate config modifiers from core | py |
diff --git a/stanfordnlp/protobuf/__init__.py b/stanfordnlp/protobuf/__init__.py
index <HASH>..<HASH> 100644
--- a/stanfordnlp/protobuf/__init__.py
+++ b/stanfordnlp/protobuf/__init__.py
@@ -1,9 +1,11 @@
from __future__ import absolute_import
from io import BytesIO
+import warnings
from google.protobuf.internal.... | Protobuf DecodeError is now catched and thrown as a RuntimeWarning instead | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
#from setuptools import setup
setup(name='lifxlan',
- version='1.1.0',
+ version='1.1.1',
description='API for local communication with LIFX devices over a LAN... | updated version number to reflect compatibility with upcoming firmware update (now they're checking message sizes, and the original calculation was wrong and has been fixed | py |
diff --git a/alot/db/manager.py b/alot/db/manager.py
index <HASH>..<HASH> 100644
--- a/alot/db/manager.py
+++ b/alot/db/manager.py
@@ -269,16 +269,6 @@ class DBManager(object):
"""returns number of threads that match `querystring`"""
return self.query(querystring).count_threads()
- def search_thr... | remove deprecated method see also issue #<I> | py |
diff --git a/jpype/_core.py b/jpype/_core.py
index <HASH>..<HASH> 100644
--- a/jpype/_core.py
+++ b/jpype/_core.py
@@ -217,7 +217,7 @@ def startJVM(*args, **kwargs):
try:
import locale
# Gather a list of locale settings that Java may override (excluding LC_ALL)
- categories = [getattr(loca... | Change to dir from __all__ | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -42,7 +42,8 @@ from openquake.commonlib import logs
OQ_API = 'https://api.openquake.org'
TERMINATE = config.distribution.terminate_workers_on_revoke
-... | Small fix [skip CI] | py |
diff --git a/imagemodal/imagemodal.py b/imagemodal/imagemodal.py
index <HASH>..<HASH> 100644
--- a/imagemodal/imagemodal.py
+++ b/imagemodal/imagemodal.py
@@ -31,6 +31,8 @@ class ImageModal(
loader = ResourceLoader(__name__)
+ show_in_read_only_mode = True
+
display_name = String(
display_name... | Add flag for showing the xblock in read only mode Make the image modal xblock visible for specified students. Test locally on studio and lms, through adding the xblock to a course and toggling view between staff and specified student. | py |
diff --git a/tests/searchcommands/test_generator_command.py b/tests/searchcommands/test_generator_command.py
index <HASH>..<HASH> 100644
--- a/tests/searchcommands/test_generator_command.py
+++ b/tests/searchcommands/test_generator_command.py
@@ -4,6 +4,7 @@ import time
from . import chunked_data_stream as chunky
f... | Test for allow_empty_input in generating commands | py |
diff --git a/palladium/persistence.py b/palladium/persistence.py
index <HASH>..<HASH> 100644
--- a/palladium/persistence.py
+++ b/palladium/persistence.py
@@ -130,11 +130,11 @@ class RestIO(FileLikeIO):
if mode[0] == 'r':
res = self.session.get(path, stream=True)
res.raise_for_status(... | Fix bug with handling of encoding when using RestIO | py |
diff --git a/python/src/cm_api/endpoints/services.py b/python/src/cm_api/endpoints/services.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/services.py
+++ b/python/src/cm_api/endpoints/services.py
@@ -249,6 +249,15 @@ class ApiService(BaseApiObject):
"""
return self._cmd('hbaseCreateRoot')
... | [API] Add refresh command. Applies to MapReduce/JobTracker, HDFS/NameNode, Yarn/ResourceManager. | py |
diff --git a/master/buildbot/test/unit/test_changes_svnpoller.py b/master/buildbot/test/unit/test_changes_svnpoller.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_changes_svnpoller.py
+++ b/master/buildbot/test/unit/test_changes_svnpoller.py
@@ -578,3 +578,15 @@ class TestSplitFile(unittest.TestCas... | Add test coverage for project-branch-file splitter | py |
diff --git a/ELiDE/ELiDE/board/board.py b/ELiDE/ELiDE/board/board.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/board/board.py
+++ b/ELiDE/ELiDE/board/board.py
@@ -230,10 +230,9 @@ class Board(RelativeLayout):
def on_touch_up(self, touch):
if hasattr(self, 'protodest'):
- self.portal_touch... | Make Board.on_touch_up return True when successfully made portal | py |
diff --git a/rewind/server/test/test_main.py b/rewind/server/test/test_main.py
index <HASH>..<HASH> 100644
--- a/rewind/server/test/test_main.py
+++ b/rewind/server/test/test_main.py
@@ -104,7 +104,7 @@ class TestCommandLineExecution(unittest.TestCase):
datapath = tempfile.mkdtemp()
print("Using datap... | Making tests pass in Python 3 The tests that were failing were introduced in c<I>dab<I>ff5deb5d7e4a<I>f4e<I>a5aaf<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ if __name__ == '__main__':
version = versionString,
description = "A library for handling Web of science files",
long_description = long_description,
+ long_description_content_... | Update setup.py to read markdown | py |
diff --git a/tests/tools.py b/tests/tools.py
index <HASH>..<HASH> 100644
--- a/tests/tools.py
+++ b/tests/tools.py
@@ -137,9 +137,9 @@ class PyaniFileEqualityTests(unittest.TestCase):
and columns, then compare.
"""
df1 = pd.read_csv(fname1, sep="\t", index_col=0)
- df1.reindex(columns=... | reorder rows and columns in tab file tests | py |
diff --git a/tests/integration/states/pkg.py b/tests/integration/states/pkg.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/pkg.py
+++ b/tests/integration/states/pkg.py
@@ -597,6 +597,7 @@ class PkgTest(integration.ModuleCase,
)
@requires_system_grains
+ @requires_salt_modules('pkg.... | Gate the pkg.group_installed state test: not all pkg modules have group_install Refs #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,9 +35,13 @@ class BuildWithPly(build):
def build_nt2(self):
nt2_dir = 'nt2'
if not os.path.isdir(nt2_dir):
- print 'nt2 git reprository not setup, cloning it'
+ print 'nt2 git r... | Fix nt2 dependency New nt2 release introduces a few API change that are not trivial to fix | py |
diff --git a/paramiko/config.py b/paramiko/config.py
index <HASH>..<HASH> 100644
--- a/paramiko/config.py
+++ b/paramiko/config.py
@@ -156,13 +156,10 @@ class SSHConfig (object):
ret = {}
for match in matches:
for key, value in match['config'].iteritems():
- if key == 'iden... | DRY up the code for populating the return list | py |
diff --git a/histutils/image_write_multipage.py b/histutils/image_write_multipage.py
index <HASH>..<HASH> 100755
--- a/histutils/image_write_multipage.py
+++ b/histutils/image_write_multipage.py
@@ -22,16 +22,7 @@ from tempfile import gettempdir
from os.path import join
from numpy import random, uint8
from time impo... | don't load unused skimage | py |
diff --git a/dcard/cli.py b/dcard/cli.py
index <HASH>..<HASH> 100644
--- a/dcard/cli.py
+++ b/dcard/cli.py
@@ -26,6 +26,10 @@ parser.add_argument(
'-v', '--verbose', action='store_true', help='Logging verbose information')
parser.add_argument(
'-V', '--version', action='version', version=dcard.__version__)
+... | add new options -c and -l user can scrape comments and links in CLI | py |
diff --git a/vat_moss/rates.py b/vat_moss/rates.py
index <HASH>..<HASH> 100644
--- a/vat_moss/rates.py
+++ b/vat_moss/rates.py
@@ -137,7 +137,7 @@ BY_COUNTRY = {
'rate': Decimal('0.21')
},
'LU': { # Luxembourg
- 'rate': Decimal('0.15')
+ 'rate': Decimal('0.17')
},
'LV': { # ... | Rate update Our accountant checked these and fixed few rates. | py |
diff --git a/djangocms_gmaps/models.py b/djangocms_gmaps/models.py
index <HASH>..<HASH> 100644
--- a/djangocms_gmaps/models.py
+++ b/djangocms_gmaps/models.py
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
-import urllib
+
+try:
+ from urllib.parse import quote_plus
+except ImportError: # Python 2
+ from urllib im... | #1 — bug fix - python 3 compatibility issue | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.